updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / lilv-svn / PKGBUILD
blobd3222091f0fc19883161c43e63f44deb0a25d272
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=lilv-svn
4 _pkg="${pkgname%-svn}"
5 pkgver=3512
6 pkgrel=1
7 pkgdesc="A library to make the use of LV2 plugins as simple as possible for applications."
8 arch=("i686" "x86_64")
9 url="http://drobilla.net/software/${_pkg}/"
10 license=("custom:ISC")
11 depends=("lv2core" "sord>=0.5.0" "sord<1.0.0" "python2")
12 makedepends=("subversion" "python" "swig" "lv2core" "lv2-dyn-manifest")
13 optdepends=("bash-completion: auto-complete words")
14 options=()
16 _svntrunk="http://svn.drobilla.net/lad/trunk/${_pkg}"
17 _svnmod="$_pkg"
19 build() {
20   cd "$srcdir"
22   if [[ -d "${_svnmod}/.svn" ]]; then
23     (cd "$_svnmod" && svn up -r "$pkgver")
24   else
25     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting build..."
31   rm -rf "${srcdir}/${_svnmod}-build"
32   cp -a "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
33   cd "${srcdir}/${_svnmod}-build"
35   #
36   # BUILD
37   #
39   export PYTHON="/usr/bin/python2"
41   # remove ldconfig
42   sed -i "/ldconfig/d" wscript
44   python ./waf configure --prefix=/usr \
45                          --configdir=/etc \
46                          --mandir=/usr/share/man \
47                          --dyn-manifest \
48                          --bindings
49   python ./waf build
52 package() {
53   local _svndir="${srcdir}/${_svnmod}-build"
54   . <(egrep "^${_pkg^^}.*VERSION[ =]*'[.0-9]*'" "${_svndir}/wscript" | tr -d ' ' | sed 's/^/_/')
55   provides=("${_pkg}=${_LILV_VERSION}")
56   conflicts=("${_pkg}>=${_LILV_MAJOR_VERSION}.0.0")
58   cd "$_svndir"
59   DESTDIR="$pkgdir" python ./waf install
61   # license
62   install -m755 -d "${pkgdir}/usr/share/licenses/${_pkg}"
63   install -m644 -t "${pkgdir}/usr/share/licenses/${_pkg}" COPYING
66 # vim:set ts=2 sw=2 et: