# $Id: PKGBUILD 98416 2013-10-09 19:27:11Z schiv $ # Maintainer: Ray Rashif # Contributor: Corrado Primier # Contributor: sickhate # TODO: bring in pyalsa, csound, mma pkgname=solfege pkgver=3.22.2 pkgrel=2 pkgdesc="Music education and ear training software" arch=('i686' 'x86_64' 'mips64el') url="http://www.solfege.org/" license=('GPL3') depends=('pygtk' '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=('ee9778d2b960b7afb375c5b3c3878222') 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: