db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / cryptsetup / repos / core-x86_64 / PKGBUILD
bloba4f1b7d732becdceb33186a93e93e23b6371b355
1 # Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Thomas Bächler <thomas@archlinux.org>
4 pkgname=cryptsetup
5 pkgver=2.6.1
6 pkgrel=3
7 pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt'
8 arch=(x86_64)
9 license=('GPL')
10 url='https://gitlab.com/cryptsetup/cryptsetup/'
11 depends=('device-mapper' 'libdevmapper.so' 'openssl' 'popt' 'util-linux-libs'
12          'libuuid.so' 'json-c' 'libjson-c.so' 'argon2' 'libargon2.so')
13 makedepends=('util-linux' 'asciidoctor')
14 provides=('libcryptsetup.so')
15 options=('!emptydirs')
16 validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
17 source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/${pkgname}-${pkgver}.tar."{xz,sign}
18         'hooks-encrypt'
19         'install-encrypt'
20         'install-sd-encrypt')
21 sha256sums=('410ded65a1072ab9c8e41added37b9729c087fef4d2db02bb4ef529ad6da4693'
22             'SKIP'
23             '839e961e053512293052250b424f38c347cb46c14cbd51d7e2705b3f5378ec02'
24             '2b71c6c56ef81e5bf4f49dcc08dbd1651b46bda51a8f75a0a342b344b2d0eccd'
25             'ec983a55b09dd512ab5b2f329fe611cb10478e4cc1cd3bb65848cf234dcfebd8')
27 build() {
28   cd "${srcdir}"/$pkgname-${pkgver}
30   ./configure \
31     --prefix=/usr \
32     --sbindir=/usr/bin \
33     --enable-libargon2 \
34     --disable-ssh-token \
35     --disable-static
36   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
37   make
40 package() {
41   cd "${srcdir}"/$pkgname-${pkgver}
43   make DESTDIR="${pkgdir}" install
45   # install docs
46   install -D -m0644 -t "${pkgdir}"/usr/share/doc/cryptsetup/ FAQ.md docs/{Keyring,LUKS2-locking}.txt
48   # install hook
49   install -D -m0644 "${srcdir}"/hooks-encrypt "${pkgdir}"/usr/lib/initcpio/hooks/encrypt
50   install -D -m0644 "${srcdir}"/install-encrypt "${pkgdir}"/usr/lib/initcpio/install/encrypt
51   install -D -m0644 "${srcdir}"/install-sd-encrypt "${pkgdir}"/usr/lib/initcpio/install/sd-encrypt