summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/device-mapper/PKGBUILD
blob: 7c2cd46765db88c3199d9e672e4c356360f413db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=device-mapper
pkgver=1.02.27
pkgrel=10
pkgdesc="Device mapper userspace library and tools."
arch=('i686' 'x86_64')
license=('GPL')
url="http://sourceware.org/dm/"
groups=('base')
depends=('glibc')
source=(ftp://sources.redhat.com/pub/dm/device-mapper.$pkgver.tgz
	device-mapper.rules)
md5sums=('6074f2c2035c2a526422e691c7457277'
         '065f32a36947e6183722ed9aef13dc0c')

build() {
  cd $startdir/src/$pkgname.$pkgver
  ./configure --prefix=/usr 
  make || return 1
  make DESTDIR=$startdir/pkg sbindir=$startdir/pkg/sbin \
    libdir=$startdir/pkg/lib install

  # install the static library as well
  install -D -m644 lib/ioctl/libdevmapper.a $startdir/pkg/usr/lib/libdevmapper.a
  # install udev rule
  install -D -m644 $startdir/src/device-mapper.rules $startdir/pkg/etc/udev/rules.d/device-mapper.rules
  # fix device-mapper link bug
  ln -sf /lib/libdevmapper.so $startdir/pkg/usr/lib/libdevmapper.so
}