# Maintainer: SpepS pkgname=laditools-git _pkg="${pkgname%-git}" pkgver=20111005 pkgrel=1 pkgdesc="A set of tools aiming to improve desktop integration and user workflow of Linux audio system based on JACK and LASH." arch=("any") url="http://www.marcochapeau.org/software/laditools" license=("GPL3") depends=("pygtk" "python2-yaml" "glade") makedepends=("git") optdepends=() install="${pkgname}.install" source=("${pkgname}.install") sha256sums=("61f2fc19a17b6cf211fd8ec36505403216cef15a813a8e91c57eb17c64533e50") _gitroot="git://git.marcochapeau.org/${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 # python2 setup.py build } package() { local _gitdir="${srcdir}/${_gitname}" . <(sed -n "s|\s*version\s*=\s*'\(.*\)',$|_${_pkg^^}_VERSION=\1|p" "${_gitdir}/setup.py" | tr '-' '_') provides=("${_pkg}=${_LADITOOLS_VERSION}") conflicts=("${_pkg}") cd "$_gitdir" python2 setup.py install --prefix="/usr" --root="$pkgdir" } # vim:set ts=2 sw=2 et: