# Maintainer: Bernardo Barros # Contributor: Philipp Überbacher # Contributor: Nate Slottow (m00tp01nt) # Contributor: SpepS pkgname=zynjacku-git _pkg="${pkgname%-git}" pkgver=20110930 pkgrel=1 pkgdesc="JACK based host for LV2 synths and effects, also containing lv2rack. Development version." arch=("i686" "x86_64") url="http://home.gna.org/zynjacku/" license=("GPL2") depends=("jack" "python2" "gtk2" "lv2core" "lv2dynparam1>=2") makedepends=("lv2core") optdepends=("lash: session support") options=("!libtool") _gitroot="git://repo.or.cz/${pkgname/-/.}" _gitname="$_pkg" build() { local _gitdir="${srcdir}/${_gitname}" msg "Connecting to GIT server...." if [[ -d "$_gitdir" ]]; then cd "$_gitdir" && git pull origin msg "The local files are updated." else git clone "$_gitroot" "$_gitdir" fi msg "GIT checkout done or server timeout" msg "Starting build..." cd "$_gitdir" git clean -dfx git reset --hard HEAD # # BUILD # # use python2 export PYTHON="/usr/bin/python2" # fix the hashbang in python scripts while IFS= read -r -d $'\0' line; do sed -i 's_env python_&2_' "$line" done < <(egrep -RliZ "env python[^2]*" .) ./bootstrap # alternative to patching is compiling without unused-but-set-variable gcc warnings CFLAGS="${CFLAGS} -Wno-unused-but-set-variable" ./configure --prefix="/usr" make } package() { local _gitdir="${srcdir}/${_gitname}" . <(sed -n "s|AC_INIT(\s*\([^[:blank:],]\{1,\}\)\s*,\s*\([^[:blank:],]\{1,\}\)\s*)|_${_pkg^^}_NAME=\1\n_${_pkg^^}_VERSION=\2|p" "${_gitdir}/configure.ac") provides=("${_pkg}=${_ZYNJACKU_VERSION}") conflicts=("${_pkg}") cd "$_gitdir" make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: