From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/solfege/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 community/solfege/PKGBUILD (limited to 'community/solfege') diff --git a/community/solfege/PKGBUILD b/community/solfege/PKGBUILD new file mode 100644 index 000000000..d26440d70 --- /dev/null +++ b/community/solfege/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 93249 2013-06-29 19:58:40Z schiv $ +# Maintainer: Ray Rashif +# Contributor: Corrado Primier +# Contributor: sickhate + +# TODO: bring in pyalsa, csound, mma +pkgname=solfege +pkgver=3.22.0 +pkgrel=1 +pkgdesc="Music education and ear training software" +arch=('i686' 'x86_64') +url="http://www.solfege.org/" +license=('GPL3') +depends=('pygtk' 'libgtkhtml' 'librsvg') +makedepends=('ghostscript' 'gnome-doc-utils' 'libxslt' + 'swig' 'texinfo' 'txt2man') +optdepends=('timidity++: or any MIDI player & MIDI-WAV converter' + 'mpg123: or any MP3 player' + 'lame: or any WAV-MP3 converter' + 'vorbis-tools: or any OGG player & WAV-OGG converter' + 'lilypond: for generating print-outs & score sheets' + 'texlive-bin: use LaTeX to replace HTML reports with DVI') +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('8a5275d6db3ff181068441d7e32ad7f3') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # python2 fix for entire build + export PYTHON=/usr/bin/python2 + + # python2 fix for rogue Makefile + sed -i 's/shell python/shell python2/g' help/Makefile + + ./configure --prefix=/usr \ + --sysconfdir=/etc + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # python2 fix for runtime + for i in $(find "$pkgdir" -name '*.py'); do + sed -i 's:^#!.*bin/python$:#!/usr/bin/python2:' "$i" + sed -i 's:^#!.*bin/env python$:#!/usr/bin/env python2:' "$i" + done + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf