void-packages/srcpkgs/python-lz4/template

34 lines
819 B
Bash

# Template file for 'python-lz4'
pkgname=python-lz4
version=0.8.2
revision=1
wrksrc=lz4-${version}
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="pkg-config python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-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=6bf49061d73d69c453e892ace4586b99ccffc7de558f921d18b9418235692ac7
pre_build() {
sed '/nose/ d' -i setup.py
sed -n 2,27p src/lz4.c > LICENSE
}
post_install() {
vlicense LICENSE
}
python3.4-lz4_package() {
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}