summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBruno Galeotti2015-08-12 12:28:34 -0300
committerBruno Galeotti2015-08-12 12:28:34 -0300
commit6fdbe3946b4c2fec425756b4d3b79bc71abd0f22 (patch)
tree9e7c436e1495076eb81d27f6d7132000f56a18d8 /PKGBUILD
downloadaur-6fdbe3946b4c2fec425756b4d3b79bc71abd0f22.tar.gz
v0.2.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bf32834851b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Mantainer: Bruno Galeotti <bgaleotti at gmail dot com>
+
+pkgname=php-pharcc
+_pkgname=pharcc
+pkgver=0.2.4
+pkgrel=1
+pkgdesc="A command-line tool that converts your php project into a .phar file."
+url="https://github.com/cbednarski/pharcc"
+license="MIT"
+arch=("any")
+depends=("php")
+source=("https://github.com/cbednarski/pharcc/archive/v${pkgver}.tar.gz")
+sha512sums=('95a1108fc66a8a8f217624575d2782cc6737111b6f135b631efa704e5ec88da468f5578eb03f3ac12ba2e80e7bcaa7642705aa9d985da8d13649a6915e3eea02')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ composer install --prefer-dist --no-dev
+ php ./bin/pharcc build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 "${_pkgname}.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}"
+}