aboutsummaryrefslogtreecommitdiffstats
path: root/testing/arcanist
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-17 12:30:59 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-17 12:32:06 +0000
commit8f60459754befa9b2bc8caac3afb3889f1c90793 (patch)
tree412cbff078d236ca6a7d1c6636207476e95fe545 /testing/arcanist
parentcb1d0fc6d8fc1642e5003c1a85fbc00e7b2e2ff2 (diff)
downloadaports-8f60459754befa9b2bc8caac3afb3889f1c90793.tar.bz2
aports-8f60459754befa9b2bc8caac3afb3889f1c90793.tar.xz
testing/arcanist: new aport
Diffstat (limited to 'testing/arcanist')
-rw-r--r--testing/arcanist/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/arcanist/APKBUILD b/testing/arcanist/APKBUILD
new file mode 100644
index 0000000000..2ac5c37b43
--- /dev/null
+++ b/testing/arcanist/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer:
+pkgname=arcanist
+pkgver=0_git20180717
+pkgrel=0
+pkgdesc="Command line interface for Phabricator"
+url="http://www.phabricator.com/docs/arcanist/"
+arch="noarch"
+license="Apache-2.0"
+depends="php7"
+depends="php7 php7-curl php-json libphutil"
+options="!check" # no checks
+subpackages=""
+source="http://dev.alpinelinux.org/archive/arcanist/arcanist-$pkgver.tar.gz"
+builddir="$srcdir/arcanist-stable"
+
+build() {
+ :
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/php/$pkgname \
+ "$pkgdir"/usr/bin
+ for i in externals resources scripts src; do
+ cp -r "$builddir"/$i "$pkgdir"/usr/share/php/$pkgname/
+ done
+ ln -sf /usr/share/php/$pkgname/scripts/arcanist.php \
+ "$pkgdir"/usr/bin/arc
+}
+
+snapshot() {
+ local pkgver=0_git$(date +%Y%m%d)
+ msg "Grabbing the latest stable snapshot"
+ mkdir -p "$srcdir"
+ wget -O "$srcdir"/$pkgname-$pkgver.tar.gz \
+ https://github.com/phacility/arcanist/archive/stable.tar.gz
+ ssh distfiles.alpinelinux.org \
+ "mkdir -p archive/$pkgname/"
+ scp "$srcdir"/$pkgname-$pkgver.tar.gz \
+ dev.alpinelinux.org:/archive/$pkgname/
+ sed -i -e "s/^pkgver=.*/pkgver=$pkgver/" \
+ "$startdir"/APKBUILD
+ sed -i -e "s/^pkgrel=.*/pkgrel=0/" \
+ "$startdir"/APKBUILD
+ abuild checksum
+}
+
+sha512sums="27c544d0da05502ce58ecc5198d0e964e53f44ced64298352b44388b70b345dd87bf0a04fc54f8ab44d32640a0964a5ba54bffeacb9f2cfcc24e004b6ea209d0 arcanist-0_git20180717.tar.gz"