blob: 21cef7c663708262147025e48263660d87037077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $Id: PKGBUILD 119725 2011-04-14 07:21:19Z schiv $
# Maintainer: Ray Rashif <schiv@archlinux.org>
pkgname=lv2core
pkgver=4.0
pkgrel=2
pkgdesc="LV2: Successor to the LADSPA audio plug-in standard"
url="http://lv2plug.in/"
license=('LGPL' 'custom')
arch=('i686' 'x86_64')
makedepends=('python2')
provides=('lv2')
changelog=$pkgname.changelog
install=$pkgname.install
source=("http://lv2plug.in/spec/$pkgname-$pkgver.tar.bz2")
md5sums=('5097d964f3559a1ecec2d2fc822ef53a')
build() {
cd "$srcdir/$pkgname-$pkgver"
python2 waf configure --prefix=/usr
python2 waf build $MAKEFLAGS
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 waf install --destdir="$pkgdir"
# do the work of lv2config to own symlinks;
# - generate lv2 headers
# - see FS#23514
_ns=$(grep '^<http' manifest.ttl | sed 's|<http://\(.*\)>|\1|')
_name=${_ns/*\/}
_path="$pkgdir/usr/include/lv2/${_ns%/*}"
install -d "$_path"
ln -s "/usr/lib/lv2/$_name.lv2" "$_path/$_name"
install -Dm644 COPYING \
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et:
|