~sircmpwn/sr.ht-pkgbuilds

ref: 2faa45db0b8d36a62aea5ec7ea713948ed6a5b2d sr.ht-pkgbuilds/python-scmsrht/PKGBUILD -rw-r--r-- 700 bytes
2faa45dbThorben Günther Celery: Update loglevel 8 months ago
                                                                                
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
pkgbase=scm.sr.ht
pkgname=python-scmsrht
pkgver=0.16.3
pkgrel=1
pkgdesc="Shared support code for sr.ht source control services"
arch=("any")
license=("AGPL")
url="https://git.sr.ht/~sircmpwn/scm.sr.ht"
depends=("python-srht")
makedepends=("python-setuptools")
source=(
    "$pkgbase-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgbase/archive/$pkgver.tar.gz"
)
sha256sums=('5f0b4aa164e78b69706cd1cc938a7e524a14637c454c1efd2520aca596f839ae')
export PKGVER=$pkgver

build() {
    cd $pkgbase-$pkgver
    python3 setup.py build
}

package() {
    cd $pkgbase-$pkgver
    python3 setup.py install --root="${pkgdir}" --optimize=1
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}