diff options
author | blat | 2015-12-21 11:48:11 +0100 |
---|---|---|
committer | blat | 2015-12-21 11:48:11 +0100 |
commit | 40a1b66feaba302afc5583582596b002abcab7b2 (patch) | |
tree | 42f40570a865e08bd37e5a6e94c268c812dc6566 | |
download | aur-40a1b66feaba302afc5583582596b002abcab7b2.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..92119d5708b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +# Generated by mksrcinfo v8 +# Mon Dec 21 10:46:49 UTC 2015 +pkgbase = boris + pkgdesc = A tiny, but robust REPL for PHP + pkgver = 1.0.10 + pkgrel = 1 + url = https://github.com/borisrepl/boris + arch = any + license = MIT + depends = php + source = https://github.com/borisrepl/boris/archive/v1.0.10.tar.gz + md5sums = 8fd91ff3f79515e762279a3f3780ee5e + +pkgname = boris + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8cc6290267f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Mickael BLATIERE <blatiere@gmail.com> +pkgname=boris +pkgver=1.0.10 +pkgrel=1 +pkgdesc="A tiny, but robust REPL for PHP" +url="https://github.com/borisrepl/boris" +arch=("any") +license=("MIT") +depends=("php") +source=("https://github.com/borisrepl/boris/archive/v${pkgver}.tar.gz") +md5sums=("8fd91ff3f79515e762279a3f3780ee5e") + +check() { + if ! php -i | grep "pcntl support => enabled" >/dev/null 2>&1; then + echo -e "Warning: pctnl.so must be loaded in your php.ini to install and use ${pkgname}" + exit 1 + fi +} + +package() { + install -d "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm644 "$srcdir/boris-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -d "$pkgdir/usr/share/pear/$pkgname" + cp -R "$srcdir/boris-$pkgver/"{lib,bin} "$pkgdir/usr/share/pear/$pkgname/" + install -d "$pkgdir/usr/bin" + ln -s "$pkgdir/usr/share/pear/$pkgname/bin/boris" "$pkgdir/usr/bin/boris" +} |