diff options
Diffstat (limited to 'pcr/swami/PKGBUILD')
-rw-r--r-- | pcr/swami/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pcr/swami/PKGBUILD b/pcr/swami/PKGBUILD new file mode 100644 index 000000000..74f69e50f --- /dev/null +++ b/pcr/swami/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer (Arch): SpepS <dreamspepser at yahoo dot it> +# Contributor (Arch): Philipp Überbacher <hollunder at gmx dot at> +# Contributor (Arch): Shinlun Hsieh <yngwiexx@yahoo.com.tw> +# Contributor (Arch): Christoph Zeiler <rabyte*gmail> + +pkgname=swami +pkgver=2.0.0 +pkgrel=2 +pkgdesc="A collection of free software for editing, managing and playing musical instruments for MIDI music composition" +arch=('i686' 'x86_64') +url="http://www.swamiproject.org/" +license=('GPL') +depends=('audiofile' 'libgnomecanvas' 'libinstpatch' 'librsvg' 'fluidsynth' + 'fftw' 'gtksourceview2' 'hicolor-icon-theme' 'desktop-file-utils') +makedepends=('intltool') +options=('!libtool') +install="$pkgname.install" +source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('849b40e4a97c4f52faf069006358dd4f') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fPIC fix for x86_64 + [ "$CARCH" = 'x86_64' ] && \ + export CFLAGS="$CFLAGS -fPIC" + + # set python2 + export PYTHON=python2 + + # python2 locate path fix + sed -i "s/echo\( \$PYTHON\)/which\1/g" configure + + # build against gtksourceview-2.0 + sed -i "s/\(gtksourceview-\)1.0/\12.0/g" configure + + sed -e "s/\(anguage\)s/\1/" \ + -e "s/_from_mime_type//" \ + -e "s/light/&_syntax/" \ + -i src/swamigui/SwamiguiPythonView.c + + ./configure --prefix=/usr \ + --enable-static=no + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} |