# $Id: PKGBUILD 157320 2012-04-26 22:51:21Z eric $ # Maintainer: Thomas Bächler pkgname=cryptsetup pkgver=1.4.1 pkgrel=3 pkgdesc="Userspace setup tool for transparent encryption of block devices using dm-crypt" arch=(i686 x86_64 'mips64el') license=('GPL') url="http://code.google.com/p/cryptsetup/" groups=('base') depends=('device-mapper>=2.02.85-2' 'libgcrypt' 'popt') conflicts=('mkinitcpio<0.7') options=('!libtool' '!emptydirs') source=(http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2 http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2.asc encrypt_hook encrypt_install) sha256sums=('82b143328c2b427ef2b89fb76c701d311c95b54093c21bbf22342f7b393bddcb' '71c6506d4b6d0b22b9b6c2a68e604959e4c072af04680ed6acc0126c97bdbc88' '811bbea1337106ad811731c746d73ee81039bad00aef52398e3a377ad0766757' 'ddbbdcb8eff93a3a7622ec633e90d5c0d68e3afbeaf942dc2309adab345047d4') build() { cd "${srcdir}"/$pkgname-${pkgver} ./configure --prefix=/usr --disable-static --sbindir=/sbin make } package() { cd "${srcdir}"/$pkgname-${pkgver} make DESTDIR="${pkgdir}" install # install hook install -D -m644 "${srcdir}"/encrypt_hook "${pkgdir}"/usr/lib/initcpio/hooks/encrypt install -D -m644 "${srcdir}"/encrypt_install "${pkgdir}"/usr/lib/initcpio/install/encrypt }