summaryrefslogtreecommitdiffstats
path: root/main/cryptsetup/APKBUILD
blob: 1c4fe7bc1b5f5471f0f37300f7fa3fe8abac438e (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
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cryptsetup
pkgver=1.6.1
pkgrel=1
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 --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="f374d11e3b0e7ca0f805756fd02e34ff  cryptsetup-1.6.1.tar.bz2"
sha256sums="baf36e663c03eb6440482d91c486d61ed47ce5c9268ad04c18ca09082755149c  cryptsetup-1.6.1.tar.bz2"
sha512sums="6d85720a33e05f2687f0ac9dd6730d025a14389091c06c047983b4875edc55db1b5c4878f7dee1720be192fa1ab06df2c7d0a0edfea0fb5bd787ee73a33302ca  cryptsetup-1.6.1.tar.bz2"