# $Id: PKGBUILD 47665 2009-07-25 01:02:38Z thomas $ # Maintainer: Judd Vinet pkgname=cryptsetup pkgver=1.1.0rc3 _realver=1.1.0-rc3 pkgrel=1 pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi" arch=(i686 x86_64) license=('GPL') url="http://code.google.com/p/cryptsetup/" groups=('base') depends=('device-mapper' 'libgcrypt' 'popt' 'e2fsprogs') conflicts=('mkinitcpio<0.5.24.99') options=('!libtool' '!emptydirs') source=(http://cryptsetup.googlecode.com/files/${pkgname}-${_realver}.tar.bz2 encrypt_hook encrypt_install) md5sums=('ec18128afd25617a0fb2a45e4c55ae27' '6bdb1b83539453d403335aed1a579a5c' '24b76e9cb938bc3c8dcff396cbab28c7') build() { cd $srcdir/$pkgname-${_realver} ./configure --prefix=/usr --disable-static make || return 1 make DESTDIR=$pkgdir install # include a static cryptsetup binary for initrd setups make clean cd $srcdir/$pkgname-${pkgver} ./configure --prefix=/usr --enable-static make || return 1 install -D -m755 src/cryptsetup $pkgdir/sbin/cryptsetup.static || return 1 # install hook install -D -m644 $srcdir/encrypt_hook $pkgdir/lib/initcpio/hooks/encrypt || return 1 install -D -m644 $srcdir/encrypt_install $pkgdir/lib/initcpio/install/encrypt || return 1 }