blob: a95050c833472c83781c1aaacaa7e0a27e37df80 (
plain) (
tree)
|
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=cryptsetup
pkgver=2.2.1
pkgrel=0
pkgdesc="Setup tool for block device encryption"
url="https://gitlab.com/cryptsetup/cryptsetup"
arch="all"
license="GPL-2.0+"
depends=""
makedepends_build=""
makedepends_host="lvm2-dev openssl-dev popt-dev util-linux-dev json-c-dev
argon2-dev"
makedepends="$makedepends_build $makedepends_host"
checkdepends="bash debianutils-which lvm2 sharutils"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-openrc"
source="https://www.kernel.org/pub/linux/utils/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz
dmcrypt.confd
dmcrypt.initd
"
build() {
./configure \
--build="$CBUILD" \
--host="$CHOST" \
--prefix=/usr \
--libdir=/lib \
--sbindir=/sbin \
--disable-static \
--enable-libargon2 \
--with-crypto_backend=openssl
make
}
check() {
make check
}
package() {
make DESTDIR=$pkgdir install
mkdir -p "$pkgdir"/usr/lib
mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/
install -Dm644 "$srcdir"/dmcrypt.confd "$pkgdir"/etc/conf.d/dmcrypt
install -Dm755 "$srcdir"/dmcrypt.initd "$pkgdir"/etc/init.d/dmcrypt
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 README TODO FAQ NEWS docs/v${pkgver}-ReleaseNotes \
"$pkgdir"/usr/share/doc/$pkgname/
}
libs() {
pkgdesc="Cryptsetup shared library"
mkdir -p "$subpkgdir"
mv "$pkgdir"/lib "$subpkgdir"/
}
sha512sums="697d77e756a3eeb8138f974a2259d4f7b9cd32c6d5569b0b04866747abb2a48ae5ed914a044ec8513bc66bbe0a9d10a439cb55f22c7c147b52561c870e964e65 cryptsetup-2.2.1.tar.gz
74422d5e1614b43af894ea01da1ea80d805ec7f77981cbb80a6b1a4becad737a8825d7269812499095a7f50d39fa7da5bf4e4edae63529b1fe87b9176943a733 dmcrypt.confd
81dad61cdecf1dc529b26eb3cdc15979a582c876b01268f88e7a71c8fae6911137c03bfa63fee64e064e5fb31f673610be27ecab9fc432229f13e7040698bd5c dmcrypt.initd"
|