diff options
author | Doug Newgard | 2015-04-23 23:12:32 -0500 |
---|---|---|
committer | Doug Newgard | 2015-04-23 23:12:32 -0500 |
commit | bca7e8b2a115c1a3fa90291d4243e0d020be0ae6 (patch) | |
tree | 85aec13342dbf0fe6d7528836280ac1bc0f10173 /PKGBUILD | |
download | aur-bca7e8b2a115c1a3fa90291d4243e0d020be0ae6.tar.gz |
Inherited from sergio.correia
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0882c99a5a7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Sergio Correia <sergio@correia.cc> +# Contributor: Nicolas Vivet <nizzox@gmail.com> + +pkgname=arcanist-git +_pkgname=arcanist +pkgver=conduit.5.693.ge4b1e8e +pkgrel=1 +pkgdesc='Arcanist (commonly, "arc") is the command-line frontend to Phabricator' +arch=('any') +url="http://phabricator.com" +license=('Apache') +depends=('libphutil-git') +makedepends=('git') +provides=('arcanist') +install='arcanist.install' +source=('git://github.com/facebook/arcanist.git') +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + git describe --always | sed 's|-|.|g' # Use the tag of the last commit +} + +package() { + install -Dd "${srcdir}"/usr/share/php/"${_pkgname}" "${pkgdir}"/etc/bash_completion.d "${pkgdir}"/usr/bin + + # do not copy hidden directories + mkdir -p "${pkgdir}"/usr/share/php/"${_pkgname}" + cp -a "${srcdir}"/"${_pkgname}"/* "${pkgdir}"/usr/share/php/"${_pkgname}"/ + ln -s ../../usr/share/php/"${_pkgname}"/resources/shell/bash-completion "${pkgdir}"/etc/bash_completion.d/"${_pkgname}" + ln -s ../share/php/"${_pkgname}"/bin/arc "${pkgdir}"/usr/bin/arc +} + +# vim:set ts=2 sw=2 et: |