summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/mfdb-json-git/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/mfdb-json-git/PKGBUILD b/abs/core/mfdb-json-git/PKGBUILD
new file mode 100644
index 0000000..aca7a60
--- /dev/null
+++ b/abs/core/mfdb-json-git/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Jameson Pugh <imntreal@gmail.com>
+
+pkgname=mfdb-json-git
+pkgver=6e5d774
+pkgrel=1
+pkgdesc="mythfilldatabase replacement for new SchedulesDirect format"
+arch=('i686' 'x86_64')
+url="https://github.com/SchedulesDirect/mfdb-json"
+license=('GPLv2')
+depends=('php-composer')
+provides=(mfdb-json)
+conflicts=(mfdb-json)
+source=("mfdb-json-git::git://github.com/SchedulesDirect/mfdb-json#branch=API-20140530")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --always | sed 's|-|.|g'
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ composer install
+ install -dm 755 "${pkgdir}/opt/mfdb-json"
+ install -dm 755 "${pkgdir}/usr/bin"
+ cp -rv ./* "${pkgdir}/opt/mfdb-json"
+ ln -s /opt/mfdb-json/sd-utility.php "${pkgdir}/usr/bin/sd-utility"
+ ln -s /opt/mfdb-json/mfdb-json.php "${pkgdir}/usr/bin/mfdb-json"
+}
+
+# vim: set ts=2 sw=2 ft=sh noet: