aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-17 12:30:42 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-17 12:32:06 +0000
commitcb1d0fc6d8fc1642e5003c1a85fbc00e7b2e2ff2 (patch)
tree31fdecae86f9bc182095f65895fe0c3626525d28
parent9a460a76cce811ae59def478caff6f519bfdfdb7 (diff)
downloadaports-cb1d0fc6d8fc1642e5003c1a85fbc00e7b2e2ff2.tar.bz2
aports-cb1d0fc6d8fc1642e5003c1a85fbc00e7b2e2ff2.tar.xz
testing/libphutil: new aport
-rw-r--r--testing/libphutil/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/libphutil/APKBUILD b/testing/libphutil/APKBUILD
new file mode 100644
index 0000000000..5ae3e6a1df
--- /dev/null
+++ b/testing/libphutil/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer:
+pkgname=libphutil
+pkgver=0_git20180717
+pkgrel=0
+pkgdesc="A collection of PHP utility classes"
+url="http://www.phabricator.com/docs/libphutil/"
+arch="noarch"
+license="Apache-2.0"
+depends="php7 php7-curl php-json"
+options="!check" # no checks
+subpackages=""
+source="http://dev.alpinelinux.org/archive/libphutil/libphutil-$pkgver.tar.gz"
+builddir="$srcdir/libphutil-stable"
+
+build() {
+ :
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/php/$pkgname \
+ "$pkgdir"/usr/bin
+ for i in externals resources scripts src support; do
+ cp -r "$builddir"/$i "$pkgdir"/usr/share/php/$pkgname/
+ done
+ ln -sf /usr/share/php/$pkgname/scripts/utils/aws-s3.php \
+ "$pkgdir"/usr/bin/aws-s3
+}
+
+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/libphutil/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="44f1c268ecfc27f4479c1a57870cc6730822cd7cfb6ef875c0eb7889f5eb8acc0e57708c08f629264db473c963f7e4ae7646434c5e9c477b3c001edc53bde751 libphutil-0_git20180717.tar.gz"