summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5960c3e8f69ec3ce2d73830f71ef544ecd8633e2 (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
35
36
37
38
# Maintainer: Younes "khoyo" Khoudli <khoyobegenn@gmail.com>
# Contributor: Maxime "pep" Buquet <archlinux@bouah.net>

_pkgname=git-pw
_tag=2.8.1
pkgname=${_pkgname}
pkgver=${_tag}
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'
  'python-requests'
  'python-click'
  'python-pbr'
  'python-arrow'
  'python-tabulate'
  'python-yaml'
)
makedepends=('python-setuptools' 'python-build' 'python-wheel' 'python-installer')
source=("${_pkgname}::git+https://github.com/getpatchwork/git-pw.git#tag=${_tag}")
sha256sums=('8df888358bf8bf3ad62ece0ef98476c5e6a32b2e0109731bc037483e7e010608')

build() {
  cd ${srcdir}/${_pkgname}
  python -m build --wheel --no-isolation
}

package() {
  cd ${srcdir}/${_pkgname}
  python -m installer --destdir="${pkgdir}" dist/git_pw-${_tag}-py3-none-any.whl
  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/"
}