# Maintainer: schaap137 pkgname=chugins-git pkgver=1.3.5.2.r86.g9ed524f pkgrel=2 pkgdesc="Repository for ChuGins (to use with chuck)" arch=('i686' 'x86_64') url="https://github.com/ccrma/chugins" license=('GPL') depends=('chuck') makedepends=('git') source=("$pkgname"::"git://github.com/ccrma/chugins.git") sha256sums=('SKIP') pkgver() { # The version cd "$srcdir/$pkgname" git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g" | sed "s/chugins.//g" } prepare() { cd "$srcdir/$pkgname" # Change JACK to PULSE if you use chuck-pulse, or comment out the next line if you use chuck-alsa sed -e 's/__LINUX_ALSA__/__LINUX_JACK__/g' -i **/makefile.linux sed -e 's/\/usr\/local\/lib/\/usr\/lib/g' -i **/makefile.linux makefile } build() { cd "$srcdir/$pkgname" make linux } package() { cd "$srcdir/$pkgname" mkdir -p "$pkgdir"/usr/lib/chuck install -Dm755 **/*.chug "$pkgdir"/usr/lib/chuck/ }