summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBruno Galeotti2015-06-08 15:37:35 -0300
committerBruno Galeotti2015-06-08 15:37:35 -0300
commit267f14e9ef6d77c8ec33f8770a49ce6bd9ca8194 (patch)
tree1e00d1a98d6ed5d99aea216b126756921cc28a6c /PKGBUILD
downloadaur-267f14e9ef6d77c8ec33f8770a49ce6bd9ca8194.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74ad9515125
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Mantainer: Bruno Galeotti <bgaleotti at gmail dot com>
+
+pkgname=php-melody
+_pkgname=melody
+pkgver=1.0
+pkgrel=1
+pkgdesc="One-file composer scripts."
+url="http://melody.sensiolabs.org/"
+license="MIT"
+arch=("any")
+depends=("php>=5.3.2")
+makedepends=("php-box" "php-composer")
+source=("${pkgname}::git+https://github.com/sensiolabs/melody.git")
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ composer install --prefer-dist --no-dev
+ sed -i '/git-commit/d' box.json
+ php-box build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 "build/${_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}"
+}
+md5sums=('SKIP')