upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / midimsg-lv2 / trunk / PKGBUILD
blob7235400c4bcdedf59d4bc40407bc2df61a5b7939
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=midimsg-lv2
4 pkgver=0.0.5
5 pkgrel=2
6 pkgdesc="A collection of basic LV2 plugins to translate midi messages to usable values"
7 arch=(x86_64)
8 url="https://github.com/blablack/midimsg-lv2"
9 license=(GPL3)
10 groups=(
11   lv2-plugins
12   pro-audio
14 depends=(
15   gcc-libs
16   glibc
17   lv2-host
19 makedepends=(
20   lv2
21   waf
23 checkdepends=(
24   lv2lint
25   sord
26   xorg-server-xvfb
28 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
29 sha512sums=('e2977dfda904e48e87fdfb416b700efae578ceeb81cbcf1ad1a40a3dc0a80e8b92a98d846d25deb367f1763a285816a99ec3db399137f5faa5b53c9bcc1646cb')
30 b2sums=('8a24d9c837f549648ce6d7b063cf454314b8be44d5121b96578ff68e94013b7ca8db36bce3ccc9c1124bf24e20084b84f2888c257332632845cb307f9082fbb1')
32 prepare() {
33   cd $pkgname-$pkgver
34   mkdir -vp tools
35   touch __init__.py
36   cp -v waflib/extras/{autowaf,lv2}.py tools
37   # modify wscript to use current scripts and fix version
38   sed -e 's/waflib.extras/tools/' \
39       -e "s/load('lv2'/load('lv2', tooldir='tools'/" \
40       -i wscript
41   rm -rv waflib
44 build() {
45   cd $pkgname-$pkgver
46   export LINKFLAGS="$LDFLAGS"
47   waf configure --prefix=/usr
48   waf build -vv
51 check() {
52   local name
54   cd $pkgname-$pkgver
55  for name in aftertouch controller modwheel; do
56     xvfb-run lv2lint -Mpack -I build/${pkgname//-/.}/ "https://github.com/blablack/midimsg-lv2/$name" || echo "Known to fail: https://github.com/blablack/midimsg-lv2/issues/1"
57   done
60 package() {
61   cd $pkgname-$pkgver
62   waf install --destdir="$pkgdir/"
63   install -vDm 644 {THANKS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"