summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 690edcd28c68e6c0734a3682c43806598dce5259 (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: Maxime "pep" Buquet <archlinux@bouah.net>

_pkgname=git-pw
pkgname=${_pkgname}-git
pkgver=2.0.0.r0.g613df41
pkgrel=1
pkgdesc="A tool for integrating Git with Patchwork, the web-based patch tracking system"
url='https://github.com/getpatchwork/git-pw'
license=('MIT')
arch=('any')
depends=(
  'git'
  'python-requests'
  'python-click'
  'python-pbr'
  'python-arrow'
  'python-tabulate'
)
makedepends=('python-setuptools')
source=("${_pkgname}::git+https://github.com/getpatchwork/git-pw.git")
sha256sums=('SKIP')

pkgver() {
  cd ${_pkgname}
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ${_pkgname}
  python setup.py install --root="${pkgdir}" --optimize=1
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  mkdir -p "${pkgdir}/usr/share/man/man1"
  install -Dm644 man/*.1 "${pkgdir}/usr/share/man/man1/"
}