summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 878a2bc9e6050dd2a45902419d699f11ca22a30e (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
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

pkgname=mrhlpr-git
_pkgname=mrhlpr
pkgver=r150.b067a9f
pkgrel=1
pkgdesc="merge request helper for postmarketOS maintainers"
arch=('any')
url="https://gitlab.postmarketos.org/postmarketOS/mrhlpr"
license=('GPL-3.0-or-later')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=('python-argcomplete' 'python-gitlab')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://gitlab.postmarketos.org/postmarketOS/mrhlpr.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
  cd "$_pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
}