summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Galeotti2015-06-08 15:37:35 -0300
committerBruno Galeotti2015-06-08 15:37:35 -0300
commit267f14e9ef6d77c8ec33f8770a49ce6bd9ca8194 (patch)
tree1e00d1a98d6ed5d99aea216b126756921cc28a6c
downloadaur-php-melody.tar.gz
Initial import
-rw-r--r--.AURINFO14
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
3 files changed, 58 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..6e6495da114
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,14 @@
+pkgbase = php-melody
+ pkgdesc = One-file composer scripts.
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://melody.sensiolabs.org/
+ arch = any
+ license = MIT
+ makedepends = php-box
+ makedepends = php-composer
+ depends = php>=5.3.2
+ source = php-melody::git+https://github.com/sensiolabs/melody.git
+
+pkgname = php-melody
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b42b3cfbb4a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = php-melody
+ pkgdesc = One-file composer scripts.
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://melody.sensiolabs.org/
+ arch = any
+ license = MIT
+ makedepends = php-box
+ makedepends = php-composer
+ depends = php>=5.3.2
+ source = php-melody::git+https://github.com/sensiolabs/melody.git
+ md5sums = SKIP
+
+pkgname = php-melody
+
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')