Skip to content

Instantly share code, notes, and snippets.

@cocreature
Last active December 31, 2015 10:09
Show Gist options
  • Save cocreature/7971128 to your computer and use it in GitHub Desktop.
Save cocreature/7971128 to your computer and use it in GitHub Desktop.
linuxsampler-svn pkgbuild
# Maintainer: Moritz Kiefer <moritz.kiefer at gmail dot com>
# Contributor: Jiri Prochazka <ojirio at gmail dot com>
# Contributor: orbisvicis <orbisvicis at gmail dot com>
# Contributor: Tom Vincent <http://tlvince.com/contact/>
pkgname=linuxsampler-svn
_pkgname="${pkgname%-svn}"
pkgver=r2483
pkgrel=1
pkgdesc="Sampler backend, including sampler engine, audio and MIDI drivers, network layer (LSCP) API and native C++ API"
arch=("i686" "x86_64")
url="http://www.linuxsampler.org/"
license=("GPL" "custom")
depends=("libgig-svn" "jack" "sqlite3" "util-linux")
makedepends=("subversion" "ladspa" "dssi")
optdepends=()
provides=('linuxsampler')
conflicts=('linuxsampler')
options=("libtool")
source=("$pkgname"::"svn+https://svn.linuxsampler.org/svn/$_pkgname/trunk"
"license.txt")
sha256sums=('SKIP'
'fe9613dc00d4dafdbe9132ba00e82b0c6f333c53dffe02e29a8dfe1753c7b622')
pkgver() {
cd "$srcdir/$pkgname"
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
}
build() {
cd "$srcdir/$pkgname"
make -f Makefile.cvs
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR=$pkgdir install
# install GPL exception statement
install -Dm0644 ../license.txt "${pkgdir}/usr/share/licenses/$pkgname/GPL-EXCEPTION"
# add linuxsampler library path to ld.so.conf.d
install -m0755 -d "$pkgdir/etc/ld.so.conf.d"
echo "/usr/lib/$_pkgname" > "$pkgdir/etc/ld.so.conf.d/$_pkgname.conf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment