summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a64fad0a9f99c9ec74bd4b988d0e4d76a85e9390 (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
# Maintainer: katt <magunasu.b97@gmail.com>

pkgname=pmbootstrap-git
pkgver=1.42.0.r12.gfaf52391
pkgrel=1
pkgdesc='Sophisticated chroot/build/flash tool to develop and install postmarketOS (git)'
arch=(any)
url=https://postmarketos.org
license=(GPL)
depends=(python-setuptools)
makedepends=(python-build python-installer python-wheel git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+https://gitlab.com/postmarketOS/pmbootstrap.git)
md5sums=(SKIP)

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

build() {
	cd "${pkgname%-git}"
	python -m build --wheel --no-isolation
}

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