From 867b5ea4656d270121a2daf5f7ae9081cb5241f2 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 22 Jan 2016 18:41:48 -0300 Subject: libinstpatch: add new package to [pcr] --- pcr/libinstpatch/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pcr/libinstpatch/PKGBUILD (limited to 'pcr/libinstpatch') diff --git a/pcr/libinstpatch/PKGBUILD b/pcr/libinstpatch/PKGBUILD new file mode 100644 index 000000000..380d8ce47 --- /dev/null +++ b/pcr/libinstpatch/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer (Arch): speps + +pkgname=libinstpatch +pkgver=1.0.0 +pkgrel=3 +pkgdesc="A library for processing digital sample based MIDI instrument patch files." +arch=(i686 x86_64) +url="http://sourceforge.net/apps/mediawiki/swami/index.php?title=Main_Page" +license=('GPL') +depends=('libsndfile' 'glib2' 'python2') +makedepends=('intltool') +options=('!libtool') +source=("http://downloads.sourceforge.net/project/swami/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('eca9c505fd0c47fd1f59d40598e8eb63') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # python2 fix + export PYTHON=python2 + + # configure fix + sed -i "s_echo\( \$PYTHON\)_which\1_g" -i configure + + # DSO link fix + LIBS=" -lgobject-2.0 -lglib-2.0" \ + ./configure --prefix=/usr \ + --enable-static=no + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf