~dricottone/apkbuilds

ref: 5ff31d7d8b8eda21faa426c1e4c256b32cff66c5 apkbuilds/src/py3-srht/APKBUILD -rw-r--r-- 1.3 KiB
5ff31d7dDominic Ricottone Some further massaging for Alpine v3.20 a month 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgbase=core.sr.ht
pkgname=py3-srht
pkgver=0.73.0
pkgrel=0
pkgdesc="sr.ht shared code"
url="https://git.sr.ht/~sircmpwn/core.sr.ht"
arch="noarch"
license="BSD"
depends="
	py3-alembic
	py3-bleach
	py3-celery
	py3-cryptography
	py3-flask
	py3-html5lib
	py3-humanize
	py3-mistletoe
	py3-prometheus-client
	py3-psycopg2
	py3-pygments
	py3-redis
	py3-requests
	py3-soupsieve
	py3-sqlalchemy
	py3-sqlalchemy-utils
	py3-beautifulsoup4
	py3-tinycss2
"
makedepends="
	py3-build
	py3-installer
	py3-setuptools
	minify
	git
"
source="
	$pkgbase-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgbase/archive/$pkgver.tar.gz
"
builddir="$srcdir/$pkgbase-$pkgver"
options="$options !check"

prepare() {
	default_prepare
	cd "$builddir"
	pyver="$(python3 --version | cut -d. -f1-2 | cut -d' ' -f2-)"
	sed -e "s/python3.8/python$pyver/" -i srht/Makefile
	git clone --depth=1 -b v4.1.1 \
		https://github.com/twbs/bootstrap srht/scss/bootstrap
}

build() {
	cd "$builddir"
	export PKGVER=$pkgver
	python3 -m build --wheel
}

package() {
	cd "$builddir"
	export PKGVER=$pkgver
	python3 -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
}


sha512sums="
7c6fed10bb4db723cb2a0541adaedb57d3121b319eef702bd6cc368f915c7a6835af270beb1d2d020d093fa2cc40911e3726300b4687a2a8a45cab12d83283b4  core.sr.ht-0.73.0.tar.gz
"