blob: fab7f8a0f802e7de32401343479eb5a7557de62d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor:
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=editorconfig
_pkgname=$pkgname-core-c
pkgver=0.12.1
pkgrel=1
pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)"
url="https://github.com/editorconfig/editorconfig-core-c"
arch="all"
license="BSD" # "Simplified" http://opensource.org/licenses/BSD-2-Clause
depends=""
makedepends="cmake doxygen pcre-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DINI_ALLOW_MULTILINE=1 \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
# Remove symlink to editorconfig-$pkgver.
rm -f "$pkgdir/usr/bin/$pkgname" || return 1
mv -f "$pkgdir/usr/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" || return 1
}
md5sums="f15a4d417c405c8de54f132dc3429e46 editorconfig-0.12.1.tar.gz"
sha256sums="c7bd714c73f01edde583b059b51078173aa85a36fa05bb9652d35a75fe0ac372 editorconfig-0.12.1.tar.gz"
sha512sums="3517f7db84d632615ba651eeafab6730739b7bf01f4ea34fbca65f58463fbbcbabc101587b289a7922b55708453262c65569077c51087424d47d0676dc1db686 editorconfig-0.12.1.tar.gz"
|