summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0882c99a5a7b5e88963e9cde9da3f773de2c3e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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: