aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/editorconfig/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/editorconfig/APKBUILD b/testing/editorconfig/APKBUILD
new file mode 100644
index 0000000000..a69dbdedc1
--- /dev/null
+++ b/testing/editorconfig/APKBUILD
@@ -0,0 +1,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="pcre"
+depends_dev="cmake doxygen gcc make musl-dev pcre-dev"
+makedepends="$depends_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"