PKGBUILD 1.21 KB
Newer Older
1
# $Id: PKGBUILD 77425 2010-04-12 20:48:57Z thomas $
Jan Mette's avatar
Jan Mette committed
2 3 4 5
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
#Contributor: Urs Wolfer <uwolfer @ fwo.ch>

pkgname=dmraid
6 7
pkgver=1.0.0.rc16+CVS
pkgrel=2
Jan Mette's avatar
Jan Mette committed
8 9 10 11 12
pkgdesc="Device mapper RAID interface"
url="http://people.redhat.com/~heinzm/sw/dmraid/"
depends=('device-mapper>=2.0.54')
arch=('i686' 'x86_64')
license=('GPL')
13 14
source=(ftp://ftp.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
        #http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-$pkgver.tar.bz2
Jan Mette's avatar
Jan Mette committed
15 16 17
        dmraid_install
        dmraid_hook)
install=dmraid.install
18 19 20
md5sums=('c0de87073de96b311d26ab0170b2a753'
         'd01908b414e1686c0f3233ff37de78a5'
         '0a748b6e78b156f2f9dda45fc629651f')
Jan Mette's avatar
Jan Mette committed
21 22

build() {
23
  cd "$srcdir"/$pkgname/$pkgver
Jan Mette's avatar
Jan Mette committed
24 25

  ./configure --enable-led --enable-intel_led
Jan Mette's avatar
Jan Mette committed
26
  make || return 1
27 28 29 30 31 32 33 34
  make DESTDIR="$pkgdir" mandir=/usr/share/man includedir=/usr/include install || return 1
  mkdir -p "$pkgdir"/var/lock/dmraid
  chmod 1777 "$pkgdir"/var/lock/
  install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/lib/initcpio/install/dmraid
  install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/lib/initcpio/hooks/dmraid
  # fix permissions
  chmod 644 "$pkgdir"/lib/libdmraid.a
  chmod 644 "$pkgdir"/usr/include/dmraid/*
Jan Mette's avatar
Jan Mette committed
35
}