diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..270d540a605f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Stefan Auditor <stefan@auditor.email> +# Please report issues at https://github.com/sanduhrs/arch-aur-php-box-bin + +_pkgname=php-box +pkgname=${_pkgname}-bin +pkgver=4.0.1 +pkgrel=1 +pkgdesc="Fast, zero config application bundler with PHARs" +arch=("any") +url="https://github.com/box-project/box" +license=("MIT") +depends=("php") +provides=(${_pkgname}) +conflicts=(${_pkgname}) +install="${_pkgname}.install" +source=( + "${_pkgname}-${pkgver}.phar::https://github.com/box-project/box/releases/download/${pkgver}/box.phar" + "LICENSE-${pkgver}::https://raw.github.com/box-project/box/${pkgver}/LICENSE" +) +sha256sums=('d862951a7acca5641bdd3d3e289e675f3c46810c7994aebfe0c9188a80f6cac1' + 'ba2dfc30b9659262549c839894838d9a1fe78ca533d0338cebc2f4f634b3bb12') + +package() { + install -D -m644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + install -D -m755 "${srcdir}/${_pkgname}-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/box.phar" + install -d "${pkgdir}/usr/bin" + ln -s "/usr/share/webapps/bin/${_pkgname}.phar" "${pkgdir}/usr/bin/box" +} |