summaryrefslogtreecommitdiff
path: root/libre/ecasound/PKGBUILD
blob: a3b0b533fc848f5568ba2e2a0c09b8887498dfd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $Id: PKGBUILD 289296 2017-02-19 22:35:27Z jgc $
# 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=8.parabola1
pkgdesc="Command-line multitrack audio processor, without nonfree faac recommendation"
arch=('i686' 'x86_64' 'armv7h')
url="https://ecasound.seul.org/ecasound/"
license=('GPL' 'LGPL')
depends=('audiofile' 'liblo>=0.28' '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=("https://ecasound.seul.org/download/$pkgname-$pkgver.tar.gz"
        'ruby2.patch')
options=('staticlibs')
sha256sums=('39fce8becd84d80620fa3de31fb5223b2b7d4648d36c9c337d3739c2fad0dcf3'
            '5dda8e8bd245d90975f57bd68e05c50f72076f7b82fab02fdd5a510275f0f188')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # fix ruby 2.0 incompatibility + use vendor_ruby for ruby files
  patch -Np1 -i "$srcdir/ruby2.patch"
}
build() {
  cd "$srcdir/$pkgname-$pkgver"

  PYTHONPATH=/usr/bin/python2 ./configure \
    --prefix=/usr \
    --with-python-includes=/usr/include/python2.7 \
    --with-python-modules=/usr/lib/python2.7 \
    --enable-liboil=no

  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: