Python 3 can be used to build instead Python 2 now

This commit is contained in:
Christopher Arndt 2016-01-19 21:07:12 +01:00
parent 971f3b5012
commit 253cab3de1
2 changed files with 12 additions and 13 deletions

View file

@ -1,19 +1,21 @@
# Generated by mksrcinfo v8
# Tue Jan 19 20:06:30 UTC 2016
pkgbase = lv2-git pkgbase = lv2-git
pkgdesc = A standard for plugins and matching host applications, mainly targeted at audio processing and generation. pkgdesc = A standard for plugins and matching host applications, mainly targeted at audio processing and generation.
pkgver = 1.12.0.r984.f18cfa8 pkgver = 1.12.1.r1004.4f597a8
pkgrel = 1 pkgrel = 1
url = http://lv2plug.in/ url = http://lv2plug.in/
arch = i686 arch = i686
arch = x86_64 arch = x86_64
license = custom:ISC license = custom:ISC
makedepends = git makedepends = git
makedepends = python2 makedepends = python
makedepends = libsndfile makedepends = libsndfile
makedepends = gtk2 makedepends = gtk2
optdepends = libsndfile: example sampler plugin optdepends = libsndfile: example sampler plugin
optdepends = gtk2: example scope plugin optdepends = gtk2: example scope plugin
optdepends = python2: lv2specgen script optdepends = python: lv2specgen script
provides = lv2=1.12.0.r984.f18cfa8 provides = lv2=1.12.1.r1004.4f597a8
provides = lv2core provides = lv2core
provides = lv2-svn provides = lv2-svn
conflicts = lv2 conflicts = lv2

View file

@ -3,16 +3,16 @@
_pkgname=lv2 _pkgname=lv2
pkgname="${_pkgname}-git" pkgname="${_pkgname}-git"
pkgver=1.12.0.r984.f18cfa8 pkgver=1.12.1.r1004.4f597a8
pkgrel=1 pkgrel=1
pkgdesc="A standard for plugins and matching host applications, mainly targeted at audio processing and generation." pkgdesc="A standard for plugins and matching host applications, mainly targeted at audio processing and generation."
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://lv2plug.in/" url="http://lv2plug.in/"
license=('custom:ISC') license=('custom:ISC')
makedepends=('git' 'python2' 'libsndfile' 'gtk2') makedepends=('git' 'python' 'libsndfile' 'gtk2')
optdepends=('libsndfile: example sampler plugin' optdepends=('libsndfile: example sampler plugin'
'gtk2: example scope plugin' 'gtk2: example scope plugin'
'python2: lv2specgen script') 'python: lv2specgen script')
provides=("${_pkgname}=${pkgver}" 'lv2core' "${_pkgname}-svn") provides=("${_pkgname}=${pkgver}" 'lv2core' "${_pkgname}-svn")
conflicts=("${_pkgname}" "${_pkgname}-svn") conflicts=("${_pkgname}" "${_pkgname}-svn")
replaces=('lv2core') replaces=('lv2core')
@ -28,16 +28,13 @@ pkgver() {
build() { build() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${_pkgname}"
python2 waf configure --prefix=/usr python waf configure --prefix=/usr
python2 waf build $MAKEFLAGS python waf build $MAKEFLAGS
} }
package() { package() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${_pkgname}"
python2 waf install --destdir="$pkgdir" python waf install --destdir="$pkgdir"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# python2 shebangs
sed -i 's/python/&2/' "$pkgdir/usr/bin/lv2specgen.py"
} }