jobcore/cryptsetup/PKGBUILD
2024-04-10 11:54:31 +03:00

65 lines
2.2 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cryptsetup
pkgver=2.7.2
pkgrel=01
pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt w/o systemd'
url='https://gitlab.com/cryptsetup/cryptsetup/'
depends=('device-mapper' 'libdevmapper.so' 'openssl' 'popt' 'util-linux-libs'
'libuuid.so' 'json-c' 'libjson-c.so' 'argon2' 'libargon2.so')
makedepends=(util-linux asciidoctor)
#options=('debug' '!emptydirs')
conflicts=('mkinitcpio<38-1')
provides=('libcryptsetup.so')
options=('!emptydirs')
source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/${pkgname}-${pkgver}.tar."{xz,sign})
# 'hooks-encrypt'
# 'install-encrypt')
# systemd-crap
# 'install-sd-encrypt')
build() {
cd "${srcdir}"/$pkgname-${pkgver}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-libargon2 \
--disable-ssh-token \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}"/$pkgname-${pkgver}
make DESTDIR="${pkgdir}" install
# install docs
install -D -m0644 -t "${pkgdir}"/usr/share/doc/cryptsetup/ FAQ.md docs/{Keyring,LUKS2-locking}.txt
# # install hook
# install -D -m0644 "${srcdir}"/hooks-encrypt "${pkgdir}"/usr/lib/initcpio/hooks/encrypt
# install -D -m0644 "${srcdir}"/install-encrypt "${pkgdir}"/usr/lib/initcpio/install/encrypt
## install -D -m0644 "${srcdir}"/install-sd-encrypt "${pkgdir}"/usr/lib/initcpio/install/sd-encrypt
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
sha256sums=(219ebf74e8eddf96624a0376477e5a6f8f350a67aaf36e7dadb114d94b3afef4 # cryptsetup-2.7.2.tar.xz
d2f3130b839e244b7ce56a8ef27eba7e4e8ba7b7a123f7be1d7e661616dc3155) # cryptsetup-2.7.2.tar.sign
## 01ca9f668c4831de4778abfb4f3ebf548e743ee4b85186e6b5b5e14381ac4cca cryptsetup-2.7.2-01-x86_64.pkg.tar.lz