summaryrefslogtreecommitdiff
path: root/libre/ecasound
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-02 06:41:22 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-02 06:41:22 -0300
commitfcce4e670cd2d81990b3f50e8a682b44d40a73cc (patch)
tree2634d6d68316f3f4dd51f378e826da884a919288 /libre/ecasound
parentc5822ca785d156da9849d5e25dc79a93d1fac22d (diff)
downloadabslibre-fcce4e670cd2d81990b3f50e8a682b44d40a73cc.tar.gz
abslibre-fcce4e670cd2d81990b3f50e8a682b44d40a73cc.tar.bz2
abslibre-fcce4e670cd2d81990b3f50e8a682b44d40a73cc.zip
remove parabola suffix and add complex pkgrel on the packages
Diffstat (limited to 'libre/ecasound')
-rw-r--r--libre/ecasound/PKGBUILD55
-rw-r--r--libre/ecasound/ruby2.patch12
2 files changed, 67 insertions, 0 deletions
diff --git a/libre/ecasound/PKGBUILD b/libre/ecasound/PKGBUILD
new file mode 100644
index 000000000..8e156c615
--- /dev/null
+++ b/libre/ecasound/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id: PKGBUILD 205044 2014-02-03 17:11:21Z schiv $
+# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
+# Contributor (Arch): Eric Belanger <eric@archlinux.org>
+# Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=ecasound
+pkgver=2.9.1
+pkgrel=2.parabola1
+pkgdesc="Command-line multitrack audio processor, without nonfree faac recommendation"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.eca.cx/ecasound/"
+license=('GPL' 'LGPL')
+depends=('audiofile' 'liblo>=0.28' 'liboil' 'lilv')
+makedepends=('python2' 'ruby')
+optdepends=('python2: ecamonitor, ECI API'
+ 'ruby: ECI API'
+ 'mpg123: MP3 decoding'
+ 'lame: MP3 encoding'
+ 'vorbis-tools: Ogg Vorbis decoding/encoding'
+ 'faad2: AAC decoding'
+ 'timidity++: MIDI file input'
+ 'libmikmod: tracker module')
+replaces=("${pkgname}-libre" "${pkgname}-parabola")
+conflicts=("${pkgname}-libre" "${pkgname}-parabola")
+source=("http://ecasound.seul.org/download/$pkgname-$pkgver.tar.gz"
+ 'ruby2.patch')
+md5sums=('13c7be1e4eddc0bbf3792dc17777e465'
+ '6909dbd4f67f76d3bd31ce7c7fe16212')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # fix ruby 2.0 incompatibility + use vendor_ruby for ruby files
+ patch -Np1 -i "$srcdir/ruby2.patch"
+
+ PYTHONPATH=/usr/bin/python2 ./configure \
+ --prefix=/usr \
+ --with-python-includes=/usr/include/python2.7 \
+ --with-python-modules=/usr/lib/python2.7
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ # fix for python 2.7
+ sed -i 's:bin/env python:bin/env python2:' \
+ "$pkgdir/usr/bin/ecamonitor"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre/ecasound/ruby2.patch b/libre/ecasound/ruby2.patch
new file mode 100644
index 000000000..d55f12140
--- /dev/null
+++ b/libre/ecasound/ruby2.patch
@@ -0,0 +1,12 @@
+diff -aur ecasound-2.9.0.orig/configure ecasound-2.9.0/configure
+--- ecasound-2.9.0.orig/configure 2013-03-26 17:14:51.759045636 +0800
++++ ecasound-2.9.0/configure 2013-03-26 17:15:50.502060731 +0800
+@@ -6535,7 +6535,7 @@
+ rubyecasound_support=no
+ ECA_S_RUBY_SITEDIR=""
+ else
+- ECA_S_RUBY_SITEDIR="`ruby -e 'require "rbconfig"; include Config; print CONFIG["sitedir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]'`"
++ ECA_S_RUBY_SITEDIR="`ruby -e 'include RbConfig; print CONFIG["vendordir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]'`"
+ fi
+
+