~sircmpwn/sr.ht-pkgbuilds

ref: 324949d9341f5315f50b67364f7a99caf3fdcd3c sr.ht-pkgbuilds/python-scmsrht/PKGBUILD -rw-r--r-- 700 bytes
324949d9Roshless add missing install for hub.sr.ht 9 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=('d1e4bab34ac671100952b30d1698f20e4ce456a044608bd274bbb145e5427a79')
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"
}