39 lines
990 B
Bash
39 lines
990 B
Bash
# Template file for 'python3-snakeoil'
|
|
pkgname=python3-snakeoil
|
|
version=0.8.8
|
|
revision=4
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython"
|
|
makedepends="python3-devel"
|
|
depends="python3"
|
|
short_desc="Python3 optimized versions of common python functionality"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="BSD-3-Clause, GPL-2.0-only"
|
|
homepage="https://github.com/pkgcore/snakeoil"
|
|
# changelog="https://github.com/pkgcore/snakeoil/blob/master/NEWS.rst"
|
|
distfiles="${PYPI_SITE}/s/snakeoil/snakeoil-${version}.tar.gz"
|
|
checksum=8381ed730cb4c127c2cb5f99ed8a148d3f2bc492de21f035aae8913f7a106d63
|
|
|
|
post_extract() {
|
|
local _f
|
|
for _f in src/snakeoil/*.pyx; do
|
|
rm -f ${_f%.pyx}.c
|
|
done
|
|
}
|
|
|
|
pre_check() {
|
|
export PYTHONPATH=$(cd build/lib* && pwd)
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-snakeoil-devel_package() {
|
|
depends="python3-snakeoil>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include/python3*
|
|
}
|
|
}
|