updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / listener / PKGBUILD
blob596f4118af1af6546a8a6c03a2d94f3b32241cf4
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=listener
4 pkgver=2.0.1
5 pkgrel=1
6 pkgdesc="Listens for sound and starts recording until the sound stops."
7 arch=(i686 x86_64)
8 url="http://www.vanheusden.com/listener/"
9 license=('GPL')
10 depends=('ncurses' 'portaudio')
11 backup=("etc/$pkgname.conf")
12 source=("$url$pkgname-$pkgver.tgz")
13 md5sums=('c793da01635e25ec04b87d3ed83d359d')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   sed -i "s|/usr/local||" Makefile $pkgname.h manual.html
19   make
22 package() {
23   cd "$srcdir/$pkgname-$pkgver"
25   # bins
26   install -Dm755 $pkgname \
27     "$pkgdir/usr/bin/$pkgname"
28   install -Dm755 set$pkgname \
29     "$pkgdir/usr/bin"
31   # conf
32   install -Dm644 $pkgname.conf \
33     "$pkgdir/etc/$pkgname.conf"
35   # doc
36   install -Dm644 manual.html \
37     "$pkgdir/usr/share/doc/$pkgname/manual.html"
40 # vim:set ts=2 sw=2 et: