core/lv2core/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2010-07-20 07:13:53 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lv2core
2011-05-13 07:09:35 +08:00
pkgver=4.0
2010-07-20 07:13:53 +08:00
pkgrel=1
pkgdesc="LV2: Successor to the LADSPA audio plug-in standard"
url="http://lv2plug.in/"
license=('LGPL' 'custom')
2011-05-13 07:09:35 +08:00
arch=('i686' 'x86_64')
makedepends=('python2')
provides=('lv2')
install=$pkgname.install
source=("http://lv2plug.in/spec/$pkgname-$pkgver.tar.bz2")
md5sums=('5097d964f3559a1ecec2d2fc822ef53a')
2010-07-20 07:13:53 +08:00
build() {
2011-05-13 07:09:35 +08:00
cd "$srcdir/$pkgname-$pkgver"
2010-07-20 07:13:53 +08:00
2011-05-13 07:09:35 +08:00
python2 waf configure --prefix=/usr
python2 waf build $MAKEFLAGS
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python 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"
2010-07-20 07:13:53 +08:00
2011-05-13 07:09:35 +08:00
install -Dm644 COPYING \
2010-07-20 07:13:53 +08:00
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
}