mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +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
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-nikola
|
|
_pyname=Nikola
|
|
pkgver=8.2.3
|
|
pkgrel=1
|
|
pkgdesc="Modular, fast, simple, static python website generator"
|
|
options="!check" # Tests require more packages
|
|
url="https://getnikola.com"
|
|
# armv7, armhf, s390x, x86: py3-piexif
|
|
arch="noarch !armv7 !armhf !s390x !x86"
|
|
license="MIT"
|
|
depends="py3-babel py3-blinker py3-doit py3-dateutil py3-docutils py3-logbook
|
|
py3-lxml py3-mako py3-markdown py3-natsort py3-piexif py3-pillow
|
|
py3-pygments py3-pyphen py3-pyrss2gen py3-requests py3-unidecode py3-yapsy
|
|
"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/N/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
|
|
replaces="py-nikola" # Backwards compatibility
|
|
provides="py-nikola=$pkgver-r$pkgrel" # Backwards compatibility
|
|
subpackages="$pkgname-doc"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3 -c /dev/null
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
|
|
}
|
|
|
|
sha512sums="
|
|
fbb107f975a4eeb369469eaa7a83e6fd342202530f91a0428c854f2eca28315268d6623983a078496943878a9f0548a5939184a2349d468cc0ac7152116b48b4 Nikola-8.2.3.tar.gz
|
|
"
|