PKGBUILD 1.35 KB
Newer Older
Jan Mette's avatar
Jan Mette committed
1
# $Id: PKGBUILD 72536 2010-03-18 08:59:58Z tpowa $
Jan Mette's avatar
Jan Mette committed
2 3 4 5 6
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
#Contributor: Urs Wolfer <uwolfer @ fwo.ch>

pkgname=dmraid
pkgver=1.0.0.rc16
Jan Mette's avatar
Jan Mette committed
7
pkgrel=3
Jan Mette's avatar
Jan Mette committed
8 9 10 11 12 13 14 15 16 17
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')
source=(http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-$pkgver.tar.bz2
        dmraid_install
        dmraid_hook)
install=dmraid.install
md5sums=('32832c1dfd7e72cd4355490322fca68a'
Jan Mette's avatar
Jan Mette committed
18
         '72b9ea8cf90fb8b6a3f3147fb7777fb4'
Jan Mette's avatar
Jan Mette committed
19 20 21 22
         'b1fcca57a711be68b57c5ec8614d87cb')

build() {
  cd $srcdir/$pkgname/$pkgver
Jan Mette's avatar
Jan Mette committed
23 24 25 26 27 28 29 30 31

  # create static bin
  ./configure --enable-static_link --prefix=/usr --enable-led --enable-intel_led
  make || return 1
  make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
  mv $pkgdir/usr/sbin/dmraid $pkgdir/usr/sbin/dmraid.static

  make clean
  ./configure --enable-led --enable-intel_led
Jan Mette's avatar
Jan Mette committed
32 33 34 35 36 37 38 39 40
  make || return 1
  make DESTDIR=$pkgdir exec_prefix=$pkgdir/ mandir=$pkgdir/usr/share/man includedir=$pkgdir/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 .a file
  chmod 644 $pkgdir/lib/libdmraid.a
}