2015-10-21 21:14:37 +00:00
|
|
|
# Template file for 'python-lz4'
|
|
|
|
pkgname=python-lz4
|
2016-04-29 10:37:04 +00:00
|
|
|
version=0.8.2
|
2016-10-17 09:25:46 +00:00
|
|
|
revision=2
|
2015-10-21 21:14:37 +00:00
|
|
|
wrksrc=lz4-${version}
|
|
|
|
build_style=python-module
|
2016-10-17 09:25:46 +00:00
|
|
|
hostmakedepends="pkg-config python-setuptools python3-setuptools"
|
|
|
|
makedepends="python-devel python3-devel lz4-devel"
|
2015-10-21 21:14:37 +00:00
|
|
|
short_desc="LZ4 bindings for Python2"
|
|
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
|
|
license="3-clause-BSD"
|
2016-04-28 09:25:12 +00:00
|
|
|
homepage="https://github.com/python-lz4/python-lz4"
|
2016-04-28 11:31:05 +00:00
|
|
|
distfiles="${PYPI_SITE}/l/lz4/lz4-${version}.tar.gz"
|
2016-04-29 10:37:04 +00:00
|
|
|
checksum=6bf49061d73d69c453e892ace4586b99ccffc7de558f921d18b9418235692ac7
|
2015-10-21 21:14:37 +00:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
sed '/nose/ d' -i setup.py
|
|
|
|
sed -n 2,27p src/lz4.c > LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
2016-10-17 09:25:46 +00:00
|
|
|
python3-lz4_package() {
|
|
|
|
replaces="python3.4-lz4>=0"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
2015-10-21 21:14:37 +00:00
|
|
|
pkg_install() {
|
2016-10-17 09:25:46 +00:00
|
|
|
vmove usr/lib/python3*
|
2015-10-21 21:14:37 +00:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|
2016-10-17 09:25:46 +00:00
|
|
|
python3.4-lz4_package() {
|
|
|
|
build_style=meta
|
|
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
|
|
depends="python3-lz4>=${version}_${revision}"
|
|
|
|
}
|