archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / japa / trunk / PKGBUILD
blob16fdd7ac5010e3e4969972f60a7c0990bea41b02
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=japa
4 pkgver=0.9.4
5 pkgrel=2
6 pkgdesc="A 'perceptual' or 'psychoacoustic' audio spectrum analyser"
7 arch=(x86_64)
8 url="https://kokkinizita.linuxaudio.org/linuxaudio/index.html"
9 license=(GPL2)
10 groups=(pro-audio)
11 depends=(
12   clxclient
13   clthreads
14   fftw
15   gcc-libs
16   glibc
17   jack
18   libx11
19   zita-alsa-pcmi
21 makedepends=(gendesk)
22 source=(https://kokkinizita.linuxaudio.org/linuxaudio/downloads/$pkgname-$pkgver.tar.bz2)
23 sha512sums=('d4b8b2a28c40f3f0d798be77f425e679532898e6b6060992ee0e5e2fc7d30c5cf139ae100433164b7f69f7a0df9eb317901ffbf1a651573a464769eb9e9db805')
24 b2sums=('60cff0b3ddb4f1432a070a0bddbcf4293e578c56c2e39813fe9433281070954d006e44db053ac20e6586f07e08792f86069638f367b1167f33375e276494d85d')
26 prepare() {
27   # disable optimizations
28   sed -e '/native/d' -i $pkgname-$pkgver/source/Makefile
29   # XDG desktop file
30   gendesk -n \
31           --pkgname $pkgname \
32           --pkgdesc "$pkgdesc" \
33           --name JAPA \
34           --categories "AudioVideo;Audio"
37 build() {
38   make -C $pkgname-$pkgver/source
41 package() {
42   make PREFIX=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver/source
43   install -vDm 644 $pkgname-$pkgver/{AUTHORS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
44   # xdg desktop file
45   install -vDm 644 $pkgname.desktop -t "$pkgdir/usr/share/applications/"