PKGBUILD 1.34 KB
Newer Older
1 2 3 4 5
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Jan Mette's avatar
Jan Mette committed
6 7

pkgname=dmraid
8
pkgver=1.0.0.rc16.3
9
pkgrel=2
Jan Mette's avatar
Jan Mette committed
10 11 12 13 14
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')
15 16
source=(#ftp://ftp.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
        http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-1.0.0.rc16-3.tar.bz2
Jan Mette's avatar
Jan Mette committed
17 18 19
        dmraid_install
        dmraid_hook)
install=dmraid.install
20
md5sums=('819338fcef98e8e25819f0516722beeb'
21 22
         'd01908b414e1686c0f3233ff37de78a5'
         '0a748b6e78b156f2f9dda45fc629651f')
Jan Mette's avatar
Jan Mette committed
23 24

build() {
25
  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
Jan Mette's avatar
Jan Mette committed
26
  ./configure --enable-led --enable-intel_led
27 28 29 30 31 32
  make
}

package() {
  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
  make DESTDIR="$pkgdir" prefix=/ libdir=/lib mandir=/usr/share/man includedir=/usr/include install
33 34 35 36 37 38 39
  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
40
}