summaryrefslogtreecommitdiff
path: root/pcr/swami
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-22 18:47:03 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-22 18:47:33 -0300
commit0b7de169f3648d5c18e96bccec10a118880c6c1b (patch)
tree5a450718e5e04ba829407a9142341e783b71069b /pcr/swami
parent867b5ea4656d270121a2daf5f7ae9081cb5241f2 (diff)
downloadabslibre-0b7de169f3648d5c18e96bccec10a118880c6c1b.tar.gz
abslibre-0b7de169f3648d5c18e96bccec10a118880c6c1b.tar.bz2
abslibre-0b7de169f3648d5c18e96bccec10a118880c6c1b.zip
swami: add new package to [pcr] -> https://labs.parabola.nu/issues/878
Diffstat (limited to 'pcr/swami')
-rw-r--r--pcr/swami/PKGBUILD51
-rw-r--r--pcr/swami/swami.install13
2 files changed, 64 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
+}
diff --git a/pcr/swami/swami.install b/pcr/swami/swami.install
new file mode 100644
index 000000000..71f686bfb
--- /dev/null
+++ b/pcr/swami/swami.install
@@ -0,0 +1,13 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}