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
33
34
35
36
37
38
39
40
41
42
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgbase=scm.sr.ht
pkgname=py3-scmsrht
pkgver=0.22.24
pkgrel=0
pkgdesc="sr.ht shared code"
url="https://git.sr.ht/~sircmpwn/scm.sr.ht"
arch="noarch"
license="BSD"
depends="
builds.sr.ht
py3-srht
"
makedepends="
py3-build
py3-installer
py3-setuptools
py3-setuptools_scm
py3-wheel
git
"
source="
$pkgbase-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgbase/archive/$pkgver.tar.gz
"
builddir="$srcdir/$pkgbase-$pkgver"
options="$options !check"
build() {
cd "$builddir"
export PKGVER=$pkgver
python3 -m build --wheel -n
}
package() {
cd "$builddir"
export PKGVER=$pkgver
python3 -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
}
sha512sums="
5912bf4867bc399f7250f769a88d2b737463d591b76b2efc02ad1ef410804154ce3cdf5246f83c39d90ed460af415f7886dfc8432df10653e0c4d3a674e0d62b scm.sr.ht-0.22.24.tar.gz
"