updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / gtick / PKGBUILD
blob944cc859cc9a79ad5636e0194a9269f982cc14da
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
3 # Contributor: damir <damir@archlinux.org>
5 pkgname=gtick
6 pkgver=0.5.0
7 pkgrel=1
8 pkgdesc="A Gtk metronome application supporting different meters and speeds."
9 arch=('i686' 'x86_64')
10 url="http://www.antcom.de/gtick/"
11 license=('GPL3')
12 depends=('gtk2' 'libpulse')
13 makedepends=('libsndfile')
14 optdepends=('pulseaudio: pulseaudio sound system support')
15 install="$pkgname.install"
16 source=("http://www.antcom.de/gtick/download/$pkgname-$pkgver.tar.gz"
17         "http://www.antcom.de/gtick/mcenaney.png"
18         "$pkgname.desktop")
19 md5sums=('60a3e11000ec4b7a333cd0957b9cc841'
20          '01f8a09c9f9486df868963c67adecf73'
21          '862cbb21d3ddbd0cdbcc9afdc141414f')
23 build() {
24   cd "$srcdir/$pkgname-$pkgver"
26   # use oss as default sound system
27   sed -i "s|pulseaudio|oss|" src/globals.h
28   sed -i "/soundsystem =/s/pulseaudio/oss/" src/gtkoptions.c
30   ./configure --prefix=/usr
31   make
34 package() {
35   cd "$srcdir/$pkgname-$pkgver"
37   make DESTDIR="$pkgdir/" install
39   # desktop file
40   install -Dm644 ../$pkgname.desktop \
41     "$pkgdir/usr/share/applications/$pkgname.desktop"
43   # icon
44   install -Dm644 ../mcenaney.png \
45     "$pkgdir/usr/share/pixmaps/$pkgname.png"