upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ecasound / trunk / PKGBUILD
blobeb5442d092da2c0df92cd24ce538226a2ce284cb
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: Eric Belanger <eric@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=ecasound
7 pkgver=2.9.3
8 pkgrel=9
9 pkgdesc="Command-line multitrack audio processor"
10 arch=(x86_64)
11 url="https://ecasound.seul.org/ecasound/"
12 license=(
13   GPL2
14   LGPL2.1
16 groups=(pro-audio)
17 depends=(
18   gcc-libs
19   glibc
21 makedepends=(
22   alsa-lib
23   audiofile
24   jack
25   liblo
26   libmikmod
27   libsamplerate
28   libsndfile
29   lilv
30   lv2
31   ncurses
32   python
33   readline
34   ruby
36 optdepends=(
37   'bash: for libecasoundc-config and libecasound-config'
38   'lame: MP3 encoding'
39   'libfaad2: for .aac/.m4a/.mp4 file support'
40   'libfaac: for .aac/.m4a/.mp4 file support'
41   'libmikmod: for tracker module'
42   'mpg123: MP3 decoding'
43   'python: for ecamonitor'
44   'ruby: ECI API'
45   'timidity++: for .mid file support'
46   'vorbis-tools: for .ogg file support'
48 provides=(lv2-host)
49 source=(
50   https://ecasound.seul.org/download/$pkgname-$pkgver.tar.gz
51   $pkgname-2.9.3-ncurses_6.3_format_string.patch
52   python310.patch
54 sha512sums=('4f70e6f54cd05194a4ffe80905e7488d16d32d684c87736dfdac7b3aebf3d20cbf417964d75e00e781f6f0614b8b699061c69fcbf7e1761d66ce1abfcd5f1140'
55             '319761060a5ecf5a525c934d0e4d5662a25ea7f9b10e0d4044646cc080b54a30302f06e0790e0bc1f1c792dd58c6981d6ab6d3f55fe3ef9ae149d8cbc0e644ba'
56             '985e7351e163189d6a1c78953d6f09a7d5da36395b3ac91d555f33bb108588ccbf1a1a98ec33cbecd0c61bba236a06067e9e3337f4c1f58edf1531dad8638352')
57 b2sums=('52aaa96abee9a911c613ac772fd3df3ff7bb4a8309283089d19e2f7265be26eb6e77304896cda2ed1c71742f36dfe1e38209afd42b921d56f12d43f08b4fe2d2'
58         '06ac697bfb92360945bb0e81a0aac15d0b1175a59fe895eebef0fc37b4a9ae6b26470bb0902d7b8a3f5d9973b8182c3e17f9f1845bcd21c4956bb9e40d40378b'
59         '1de4dd15257a2f666fbc6ba1ec4af1859b3158448e7e8928fe6c9feaeda2994c71fe0102bed2acd5ca81578a74a56df466812b9d6d26a98b3e47d519a37f23e3')
61 prepare() {
62   cd $pkgname-$pkgver
63   patch -Np1 -i ../python310.patch
64   # fix format string error due to ncurses >= 6.3
65   # https://sourceforge.net/p/ecasound/bugs/54/
66   patch -Np1 -i ../$pkgname-2.9.3-ncurses_6.3_format_string.patch
67   # lv2core is deprecated in favor of lv2:
68   # https://sourceforge.net/p/ecasound/bugs/52/
69   sed -e 's/lv2core/lv2/g' -i configure.ac
70   # install ruby integration to vendor_ruby
71   sed -e 's/sitedir/vendordir/' -i configure.ac
72   # using c++98 lilv is not compatible
73   sed -e 's/c++98/c++11/' -i configure.ac
74   autoreconf -fiv
76 build() {
77   # prevent static lib mangling with LTO
78   CFLAGS+=' -ffat-lto-objects'
79   CXXFLAGS+=' -ffat-lto-objects'
81   cd $pkgname-$pkgver
82   ./configure --prefix=/usr
83   make
86 package() {
87   depends+=(
88     alsa-lib libasound.so
89     jack libjack.so
90     audiofile libaudiofile.so
91     liblo liblo.so
92     lilv liblilv-0.so
93     ncurses libncursesw.so
94     readline libreadline.so
95     libsamplerate libsamplerate.so
96     libsndfile libsndfile.so
97   )
99   make DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
100   install -vDm 644 $pkgname-$pkgver/{AUTHORS,BUGS,NEWS,README,RELNOTES,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
102 # vim:set ts=2 sw=2 et: