updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / madfuload / PKGBUILD
blob6db9b0ef2d81dc93cd54b743f5b3ee9367610ee4
1 # Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=madfuload
4 pkgver=1.2
5 pkgrel=5
6 pkgdesc="USB and MIDI firmware loaders for M-Audio (or Midiman) hardware"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/usb-midi-fw"
9 license=('GPL')
10 source=("http://downloads.sourceforge.net/usb-midi-fw/$pkgname-$pkgver.tar.gz"
11         'use-udevadm-in-configure.patch'
12         '42-madfuload.rules')
13 md5sums=('6a2c68021e2e05c4eb35e67158b9414e'
14          '7e77d22ecc489eb849d2b6fadc97e1ca'
15          'e8c40cb40d04a98e78c6338fd0796b81')
16 install=madfuload.install
18 build() {
19  cd "$srcdir/$pkgname-$pkgver"
20  patch -p0 < "$srcdir/use-udevadm-in-configure.patch"
21  ./configure --prefix=/usr --with-udev=/etc/udev
22  make
25 package() {
26  cd "$srcdir/$pkgname-$pkgver"
27  make DESTDIR="$pkgdir" install
28  install -Dm 644 "$srcdir/42-madfuload.rules" "$pkgdir/etc/udev/rules.d/42-madfuload.rules"