archrelease: copy trunk to community-any
[ArchLinux/community.git] / guitarix / trunk / PKGBUILD
blobb8e67ec90235eb9d930f776c7c93085580e0360a
1 # Maintainer: David Runge <dvzrv@archlinux.org
3 pkgname=guitarix
4 pkgver=0.44.1
5 pkgrel=4
6 pkgdesc="A simple mono guitar amplifier and FX for JACK using Faust"
7 arch=(x86_64)
8 url="https://guitarix.org"
9 license=(GPL3)
10 groups=(ladspa-plugins lv2-plugins pro-audio)
11 depends=(atkmm bluez-libs cairo cairomm gcc-libs glibc glibmm gtkmm3 libsigc++
12 libx11 pangomm ttf-roboto)
13 makedepends=(avahi boost curl gdk-pixbuf2 eigen faust fftw glib2 gperf gtk3
14 intltool jack ladspa liblo liblrdf lilv lv2 pango sassc waf zita-convolver
15 zita-resampler)
16 optdepends=('new-session-manager: for session management')
17 provides=(guitarix2 libgxw.so libgxwmm.so ladspa-host lv2-host)
18 conflicts=(guitarix2)
19 replaces=(guitarix2)
20 source=($pkgname-$pkgver.tar.xz::https://download.sourceforge.net/project/guitarix/guitarix/${pkgname}2-$pkgver.tar.xz)
21 sha512sums=('d2c0e40762d97ed7ce61c3115fc3800cc569a2bb4f66e09147507a9eaa815fb9d1363444353a5854035755bd1b1e247ccb341aed60ca0ecf6a77019da73064c1')
22 b2sums=('57a1ad0be133fe2851ff7539d5c467a649774a1de90569e83feeb3ba2b05324ce0ee6d4388122cdb3fdcb36afac4cb7cfd2d6ab0216ff2f56d8e7c2886d14152')
24 build() {
25   cd $pkgname-$pkgver
26   export LINKFLAGS="$LDFLAGS"
27   waf configure --prefix=/usr \
28                 --enable-nls \
29                 --ladspa \
30                 --new-ladspa \
31                 --shared-lib \
32                 --lib-dev \
33                 --cxxflags='-flto' \
34                 --ldflags="$LDFLAGS"
35   waf build -vv
38 package() {
39   depends+=(libavahi-common.so libavahi-gobject.so libboost_iostreams.so
40   libcurl.so libfftw3f.so libgdk-3.so libgdk_pixbuf-2.0.so libgio-2.0.so
41   libglib-2.0.so libgobject-2.0.so libjack.so liblilv-0.so liblo.so liblrdf.so
42   libpangocairo-1.0.so libpango-1.0.so libsndfile.so libzita-convolver.so
43   libzita-resampler.so)
45   cd $pkgname-$pkgver
46   waf install --destdir="$pkgdir"
47   # docs
48   install -vDm 644 {changelog,README} -t "$pkgdir/usr/share/doc/$pkgname/"