summaryrefslogtreecommitdiff
path: root/community/solfege/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/solfege/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/solfege/PKGBUILD')
-rw-r--r--community/solfege/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/solfege/PKGBUILD b/community/solfege/PKGBUILD
new file mode 100644
index 000000000..c69ddd790
--- /dev/null
+++ b/community/solfege/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 42458 2011-03-16 20:03:30Z schiv $
+# Maintainer: Ray Rashif <schiv@archlinux.org>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: sickhate <sickhate@tux-linux.net>
+
+pkgname=solfege
+pkgver=3.18.7
+pkgrel=1
+pkgdesc="Music education and ear training software"
+arch=(i686 x86_64)
+url="http://www.solfege.org/"
+license=('GPL3')
+depends=('pygtk' 'libgtkhtml')
+makedepends=('ghostscript' 'gnome-doc-utils' 'librsvg' 'libxslt'
+ 'lilypond' 'swig' 'texinfo' 'txt2man' 'pkg-config')
+optdepends=('timidity++: Software MIDI support')
+changelog=$pkgname.changelog
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ solfege.desktop)
+md5sums=('c65df6e0eb7a724b8a81e41d23344e02'
+ '22b89dcfd9e7c98ab238942139b8a970')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # python2 fix
+ for file in $(find . -name '*.py' -print); do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 ../$pkgname.desktop \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+}
+
+# vim:set ts=2 sw=2 et: