42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Thomas Bächler <thomas@archlinux.org>
|
|
|
|
pkgname=cryptsetup
|
|
pkgver=2.7.3
|
|
pkgrel=1
|
|
pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt'
|
|
arch=(x86_64)
|
|
license=('GPL')
|
|
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')
|
|
conflicts=('mkinitcpio<38-1')
|
|
provides=('libcryptsetup.so')
|
|
options=('!emptydirs')
|
|
validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
|
|
source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/${pkgname}-${pkgver}.tar."{xz,sign})
|
|
sha256sums=('b772ae4f6df0cee7200b28cea960e4daaff2a203d2fd502beab3c1317b07a456'
|
|
'SKIP')
|
|
|
|
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
|
|
}
|