[arch-commits] Commit in jalv/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Aug 28 13:22:48 UTC 2019
Date: Wednesday, August 28, 2019 @ 13:22:48
Author: dvzrv
Revision: 504113
upgpkg: jalv 1.6.2-2
Switching to waf in makedepends and moving custom waf script, so it can be used by waf specifically.
Modified:
jalv/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-28 13:22:43 UTC (rev 504112)
+++ PKGBUILD 2019-08-28 13:22:48 UTC (rev 504113)
@@ -3,7 +3,7 @@
pkgname=jalv
pkgver=1.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="A simple but fully featured LV2 host for Jack"
arch=('x86_64')
url="https://drobilla.net/software/jalv"
@@ -10,7 +10,7 @@
license=('ISC')
groups=('pro-audio')
depends=('lilv' 'suil')
-makedepends=('python' 'qt5-base' 'gtk3' 'gtkmm')
+makedepends=('gtk3' 'gtkmm' 'qt5-tools' 'waf')
optdepends=('qt5-base: Qt 5.x frontend'
'gtk3: Gtk+ 3.x frontend'
'gtkmm: Gtk+ 2.x frontend')
@@ -19,15 +19,27 @@
'SKIP')
validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # copying custom waf script to separate directory, removing outdated waflib
+ # and fixing wscript to use the custom tools location instead.
+ mkdir -pv tools
+ mv -v waflib/extras/autowaf.py tools/
+ rm -rfv waflib
+ sed -e 's/waflib.extras/tools/g' \
+ -e "s/load('autowaf'/load('autowaf', tooldir='tools'/g" \
+ -i wscript
+}
+
build() {
cd "${pkgname}-${pkgver}"
- python waf configure --prefix=/usr
- python waf
+ waf configure --prefix=/usr
+ waf
}
package() {
cd "${pkgname}-${pkgver}"
- python waf install --destdir="${pkgdir}"
+ waf install --destdir="${pkgdir}"
# license
install -vDm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# docs
More information about the arch-commits
mailing list