From 262bab7932d3bd929309a27bb725a42efac40724 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 19 Dec 2016 13:12:25 +0100 Subject: [PATCH] python-audioread: requires Gst>=1.0, add python3 flavor. --- srcpkgs/python-audioread/template | 23 +++++++++++++++++------ srcpkgs/python3-audioread | 1 + 2 files changed, 18 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/python3-audioread diff --git a/srcpkgs/python-audioread/template b/srcpkgs/python-audioread/template index 43dbbdb856..9e42dfea6a 100644 --- a/srcpkgs/python-audioread/template +++ b/srcpkgs/python-audioread/template @@ -1,14 +1,14 @@ # Template file for 'python-audioread' pkgname=python-audioread version=2.1.4 -revision=1 +revision=2 noarch=yes wrksrc="audioread-${version}" -build_style=python2-module -hostmakedepends="python-setuptools" -depends="python gst-python" +build_style=python-module pycompile_module="audioread" -short_desc="Multi-library, cross-platform audio decoding in Python" +hostmakedepends="python-setuptools python3-setuptools" +depends="gst1-python" +short_desc="Multi-library, cross-platform audio decoding (Python2)" maintainer="Juan RP " homepage="https://github.com/sampsyo/audioread/" license="MIT" @@ -16,6 +16,17 @@ distfiles="${PYPI_SITE}/a/audioread/audioread-${version}.tar.gz" checksum=8ffee2d2787258c214841853f600c52943baea9ad2303cb3d4b625cde4f08fff post_install() { - sed -n '2,14p' decode.py > LICENSE + sed -n '2,13p' decode.py > LICENSE vlicense LICENSE } + +python3-audioread_package() { + noarch=yes + depends="gst1-python3" + pycompile_module="audioread" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-audioread b/srcpkgs/python3-audioread new file mode 120000 index 0000000000..8983e80d1b --- /dev/null +++ b/srcpkgs/python3-audioread @@ -0,0 +1 @@ +python-audioread \ No newline at end of file