blob: b93b5dabccfe9276e556a10b68ab3285868e6a50 (
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
42
43
44
45
46
47
48
49
50
|
# Contributor:
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=editorconfig
pkgver=0.12.1
pkgrel=0
pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)"
url="https://github.com/editorconfig/editorconfig-core-c"
arch="x86_64"
license="BSD" # "Simplified" http://opensource.org/licenses/BSD-2-Clause
depends=""
depends_dev=""
makedepends="$depends_dev cmake doxygen pcre-dev"
install=""
options=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/editorconfig-core-c/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-core-c-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-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
# Rename editorconfig-$pkgver as editorconfig
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"
|