updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wmix / PKGBUILD
blobce1a06e74757ea50a00e6954554e877b6a8d1aa4
1 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
2 # Contributor: Kevin Piche <kevin@archlinux.org>
4 pkgname=wmix
5 pkgver=3.1
6 pkgrel=4
7 pkgdesc="Dockapp mixer for OSS or ALSA"
8 arch=('i686' 'x86_64')
9 url="http://www.ne.jp/asahi/linux/timecop/"
10 license=('GPL')
11 depends=('libxpm')
12 source=(http://www.ne.jp/asahi/linux/timecop/software/$pkgname-$pkgver.tar.gz
13         wmix-fix-free.patch)
14 md5sums=('62f6e86f7558f193e081dc29444a6699'
15          '07b9b42c87cbe9531c6de5eb2e8596b0')
17 build() {
18   cd $srcdir/$pkgname-$pkgver
19   install -dm755 $pkgdir/usr/bin
20   # Fix version.
21   sed -e '/^#define VERSION/ s/3\.0/3.1/' -e 's/wmix 3\.0/wmix 3.1/' -i wmix.c || return 1
22   # Use our cflags
23   sed -i "s/-O3/$CFLAGS/" Makefile
24   # Fix crash (FS#15422)
25   patch -Np0 -i $srcdir/wmix-fix-free.patch
26   make || return 1
27   make PREFIX=$pkgdir/usr install || return 1
28   install -D -m644 wmix.1x.gz $pkgdir/usr/share/man/man1/wmix.1x.gz || return 1