From ceaa14a9a98c061e6a046f0d21af059436766e9c Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 9 Oct 2014 18:18:49 +0000 Subject: mfdb-json-git: initial commit --- abs/core/mfdb-json-git/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 abs/core/mfdb-json-git/PKGBUILD 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 + +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: -- cgit v0.12