archrelease: copy trunk to community-any
[ArchLinux/community.git] / zita-dpl1 / trunk / PKGBUILD
blobdeb8927b1bf622d1c9cfed1938642d8770b5c7d6
1 # Maintainer: David Runge <dave@sleepmap.de>
2 pkgname=zita-dpl1
3 pkgver=0.3.3
4 pkgrel=3
5 pkgdesc="A look-ahead digital peak level limiter"
6 arch=('x86_64')
7 url="https://kokkinizita.linuxaudio.org/linuxaudio/"
8 license=('GPL3')
9 groups=('pro-audio')
10 depends=('cairo' 'clthreads' 'clxclient' 'jack')
11 makedepends=('gendesk')
12 source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
13 sha512sums=('f1c5d3fb61feadb9c272d137669a5893fd949a9d75e76633baa0bcbc9755cb1ac0fb1faacffce03e747d383ddcf36f8c22ec83dea558c0fa674d6a898bb7e35c')
15 prepare() {
16   cd "${pkgname}-${pkgver}"
17   # strip -march=native
18   sed -e '/native/d' \
19       -e 's/freetype-config\ --cflags/pkgconf\ --cflags\ freetype2/' \
20       -i source/Makefile
21   gendesk -n \
22           --pkgname ${pkgname} \
23           --pkgdesc "${pkgdesc}" \
24           --name zita-dpl1 \
25           --categories "AudioVideo;Audio"
28 build() {
29   cd "${pkgname}-${pkgver}/source"
30   make PREFIX=/usr
33 package() {
34   cd "${pkgname}-${pkgver}/source"
35   make PREFIX=/usr DESTDIR="$pkgdir/" install
36   # XDG desktop integration
37   install -vDm 644 "../${pkgname}.desktop" \
38     -t "${pkgdir}/usr/share/applications/"
39   # docs
40   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
41     -vDm 644 ../doc/* \
42     -vDm 644 ../{AUTHORS,README}
44 # vim:set ts=2 sw=2 et: