blob: 0fbd9f7e1f6cae55ac97026dedb431aa0aae8515 (
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
42
43
44
45
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cryptsetup
pkgver=1.6.4
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="GPL2+"
depends=""
makedepends="lvm2-dev openssl-dev popt-dev util-linux-dev !libiconv-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/cryptsetup-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/lib \
--sbindir=/sbin \
--disable-static \
--with-crypto_backend=openssl \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
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="b0a8585edc30e024538ae05869729bfc cryptsetup-1.6.4.tar.gz"
sha256sums="ab538f1e3bdd70670ae18c82c41f4486c9ce3fdd03ce9e339a3547b512527ac4 cryptsetup-1.6.4.tar.gz"
sha512sums="ff6caaf6efd28631d29c38551e05f79fbe64fa8b5700fba0e87c509761a721b07c70a07bf7fd9d07a2cf7c8d0eeb296835adff579562c2103649020e441ef130 cryptsetup-1.6.4.tar.gz"
|