mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
32 lines
938 B
Text
32 lines
938 B
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-flask-htmlmin
|
|
_pkgorig=Flask-HTMLmin
|
|
pkgver=2.2.1
|
|
pkgrel=1
|
|
pkgdesc="Minify flask text/html mime type responses"
|
|
url="https://github.com/hamidfzm/Flask-HTMLmin"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 cssmin htmlmin py3-flask"
|
|
makedepends="py3-setuptools py3-pytest"
|
|
# temporarily moved to makedepends for riscv64
|
|
#checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hamidfzm/Flask-HTMLmin/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
34d5c9e2393901b32ab43c4333d87d75b489a410af2fdb019c180d0cb7bac01074616125486b49ef577782311a394bde6444ce311d5ab4f2ae2852a3ea92f4cd py3-flask-htmlmin-2.2.1.tar.gz
|
|
"
|