# Maintainer: Natanael Copa pkgname=cryptsetup pkgver=1.6.3 pkgrel=0 pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi" url="http://code.google.com/p/cryptsetup/" arch="all" license="GPL" depends= makedepends="lvm2-dev openssl-dev popt-dev util-linux-dev !libiconv-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libdir=/lib \ --sbindir=/sbin \ --disable-static \ --with-crypto_backend=openssl \ || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR=$pkgdir install || return 1 rm "$pkgdir"/lib/*.la || return 1 mkdir -p "$pkgdir"/usr/lib mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/ } libs() { pkgdesc="Cryptsetup shared library" mkdir -p "$subpkgdir" mv "$pkgdir"/lib "$subpkgdir"/ } md5sums="a7aeb549a543eeac433eadfb6bc67837 cryptsetup-1.6.3.tar.bz2" sha256sums="a2af4731d9442cb70bc84b7cecdd069493055d29ab65ab625c574b0f599938d8 cryptsetup-1.6.3.tar.bz2" sha512sums="f11c58db2643f5a1035be9de699fa7cef7780f83da261dbb0425d233bcf73df6f120b71c23a8a122b1f648c8fe43eea3e15f75aa536184a537f3e5dd00a1f988 cryptsetup-1.6.3.tar.bz2"