mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:47:15 +08:00
47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
#
|
|
# 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
|
|
pkgver=4.0
|
|
pkgrel=1
|
|
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')
|
|
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"
|
|
|
|
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"
|
|
|
|
install -Dm644 COPYING \
|
|
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
}
|