42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'python-lz4'
|
|
pkgname=python-lz4
|
|
version=0.9.4
|
|
revision=1
|
|
wrksrc=lz4-${version}
|
|
build_style=python-module
|
|
pycompile_module="lz4"
|
|
hostmakedepends="pkg-config python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel lz4-devel"
|
|
short_desc="LZ4 bindings for Python2"
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
license="3-clause-BSD"
|
|
homepage="https://github.com/python-lz4/python-lz4"
|
|
distfiles="${PYPI_SITE}/l/lz4/lz4-${version}.tar.gz"
|
|
checksum=60c5edf044159d86e8c04ec6f56c7994beb02235ab871855dc5f417607b53e65
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setup_requires/d' \
|
|
-e '/use_scm_version/,+2d' \
|
|
-e "/name=/ a\
|
|
version='${version}',"
|
|
sed -n 2,29p lz4/_version.c >LICENSE
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-lz4_package() {
|
|
pycompile_module="lz4"
|
|
replaces="python3.4-lz4>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-lz4_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-lz4>=${version}_${revision}"
|
|
}
|