From c1556a9a72ad0782e2f11b722c36baca79b2b726 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 21 Oct 2015 23:14:37 +0200 Subject: [PATCH] New package: python-lz4-0.7.0 --- srcpkgs/python-lz4/template | 33 +++++++++++++++++++++++++++++++++ srcpkgs/python3.4-lz4 | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-lz4/template create mode 120000 srcpkgs/python3.4-lz4 diff --git a/srcpkgs/python-lz4/template b/srcpkgs/python-lz4/template new file mode 100644 index 00000000000..644e611fa35 --- /dev/null +++ b/srcpkgs/python-lz4/template @@ -0,0 +1,33 @@ +# Template file for 'python-lz4' +pkgname=python-lz4 +version=0.7.0 +revision=1 +wrksrc=lz4-${version} +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" +short_desc="LZ4 bindings for Python2" +maintainer="Oliver Kiddle " +license="3-clause-BSD" +homepage="https://github.com/steeve/python-lz4" +distfiles="${PYPI_SITE}/l/lz4/lz4-${version}.tar.gz" +checksum=cd225744298568fd217577fc14a326a24835412374dadb5060db48f1af43eb48 + +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 + } +} + diff --git a/srcpkgs/python3.4-lz4 b/srcpkgs/python3.4-lz4 new file mode 120000 index 00000000000..858a976b46a --- /dev/null +++ b/srcpkgs/python3.4-lz4 @@ -0,0 +1 @@ +python-lz4 \ No newline at end of file