diff options
Diffstat (limited to 'system/cryptsetup/APKBUILD')
-rw-r--r-- | system/cryptsetup/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/system/cryptsetup/APKBUILD b/system/cryptsetup/APKBUILD new file mode 100644 index 000000000..91bb03928 --- /dev/null +++ b/system/cryptsetup/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: +pkgname=cryptsetup +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Setup tool for block device encryption" +url="https://gitlab.com/cryptsetup/cryptsetup" +arch="all" +options="!checkroot" +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="device-mapper sharutils cmd:which bash" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" +source="https://www.kernel.org/pub/linux/utils/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz + flush-stdout.patch + dmcrypt.confd + dmcrypt.initd + " +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + ./configure \ + --build="$CBUILD" \ + --host="$CHOST" \ + --prefix=/usr \ + --libdir=/lib \ + --sbindir=/sbin \ + --disable-static \ + --enable-libargon2 \ + --with-crypto_backend=openssl + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + 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="9d77e25c0d8569820a021e8c30fe7a3a9fa0ec9fe310e85e7aa1870e0df135baa4975a65aec02a4de6e66ba83661f1c8b1610aed7cc349e73b7e99cc17e08bda cryptsetup-2.0.1.tar.gz +301e3e3da5a899e0a6f01f44fbf37bb6a3f5b6a4fb41243bae6d3b7aea747276e784626cd1b19721cc264652c10ae8c560c4d20094e33bb82fb2fae0160682c0 flush-stdout.patch +74422d5e1614b43af894ea01da1ea80d805ec7f77981cbb80a6b1a4becad737a8825d7269812499095a7f50d39fa7da5bf4e4edae63529b1fe87b9176943a733 dmcrypt.confd +81dad61cdecf1dc529b26eb3cdc15979a582c876b01268f88e7a71c8fae6911137c03bfa63fee64e064e5fb31f673610be27ecab9fc432229f13e7040698bd5c dmcrypt.initd" |