summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Schleifenbaum2014-12-30 10:50:45 +0100
committerJohannes Schleifenbaum2014-12-30 10:50:45 +0100
commit9561d92cb73641a605a659d709919dc68de77cfc (patch)
treec543bd5ddaf6ac94c86ace7d6620dc6d532f4862 /PKGBUILD
downloadaur-9561d92cb73641a605a659d709919dc68de77cfc.tar.gz
all packages in aur subfolder
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f8b6ac119c4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
+# Please report issues at https://github.com/jojosch/pkgbuilds
+
+pkgname="php-go"
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="A simple PHP build tool."
+url="https://github.com/herrera-io/php-go"
+license="MIT"
+arch=("any")
+depends=("php>=5.3.3")
+makedepends=("php-box" "php-composer" "git")
+install="${pkgname}.install"
+source=(
+ "git+https://github.com/herrera-io/php-go.git#tag=${pkgver}"
+)
+sha1sums=(
+ "SKIP"
+)
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ composer install --prefer-dist --no-dev
+ php-box build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 "go-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/${pkgname}.phar"
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/usr/share/webapps/bin/${pkgname}.phar" "${pkgdir}/usr/bin/${pkgname}"
+}