summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9afc75e6153b83b97ad61234d765ab501bd4f6e (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: Vekhir <vekhir at yahoo dot com>

pkgname=python-sorpo-git
pkgver=r65.38776db
pkgrel=1
pkgdesc="Library to find, create and check PKGBUILD updates (main branch)"
arch=('any')
url="https://codeberg.org/Vekhir/python-sorpo"
license=('EUPL-1.2+')
provides=(python-sorpo)
conflicts=(python-sorpo)
depends=('pyalpm' 'python' 'python-gitpython' 'python-networkx' 'python-srcinfo' )
makedepends=('git' 'python-hatchling' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname::git+https://codeberg.org/Vekhir/python-sorpo")
sha512sums=('SKIP')

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

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

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