blob: d011a4d218ae689c33b93f9a0370bcb8b2ffc585 (
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
|
# Contributor:
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=editorconfig
pkgver=0.12.0
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 \
|| 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="7bb7d82145984acf0b3568d161815b75 editorconfig-0.12.0.tar.gz"
sha256sums="a53b67aca5ba307c37e9e002fa6cc5e5399ac0099eaeeca700ad703ee6e5278b editorconfig-0.12.0.tar.gz"
sha512sums="5e3576a202823da0c78535b549efc29656d8fc15231ece2ad8e701bf2f7d76b14dc02e445dc71ea6a6da6fbcc624eac82539380e77a25111f215ace3f3a516e1 editorconfig-0.12.0.tar.gz"
|