PKGBUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  2. # Contributor: Thomas Bächler <thomas@archlinux.org>
  3. pkgname=cryptsetup
  4. pkgver=2.0.4
  5. pkgrel=1
  6. pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt'
  7. arch=(x86_64 ppc64le)
  8. license=('GPL')
  9. url='https://gitlab.com/cryptsetup/cryptsetup/'
  10. groups=('base')
  11. depends=('device-mapper' 'libgcrypt' 'popt' 'libutil-linux' 'json-c' 'argon2')
  12. makedepends=('util-linux')
  13. options=('!emptydirs')
  14. validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
  15. source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v2.0/${pkgname}-${pkgver}.tar."{xz,sign}
  16. 'hooks-encrypt'
  17. 'install-encrypt'
  18. 'install-sd-encrypt')
  19. sha256sums=('9d3a3c7033293e0c97f0ad0501fd5b4d4913ae497cbf70cca06633ccc54b5734'
  20. 'SKIP'
  21. '416aa179ce3c6a7a5eee0861f1f0a4fafac91b69e84a2aae82b6e5a6140e31e2'
  22. '7b8c8a189f1b63cb4a0c0dd93d3452615bdc05f0e33570c78b338446a59ca750'
  23. '95a16baa273a0ea5c531bc4b65e7f142ae7cb6423b5e512f4413d1dd4a545421')
  24. build() {
  25. cd "${srcdir}"/$pkgname-${pkgver}
  26. ./configure \
  27. --prefix=/usr \
  28. --sbindir=/usr/bin \
  29. --enable-libargon2 \
  30. --disable-static
  31. make
  32. }
  33. package() {
  34. cd "${srcdir}"/$pkgname-${pkgver}
  35. make DESTDIR="${pkgdir}" install
  36. # install hook
  37. install -D -m0644 "${srcdir}"/hooks-encrypt "${pkgdir}"/usr/lib/initcpio/hooks/encrypt
  38. install -D -m0644 "${srcdir}"/install-encrypt "${pkgdir}"/usr/lib/initcpio/install/encrypt
  39. install -D -m0644 "${srcdir}"/install-sd-encrypt "${pkgdir}"/usr/lib/initcpio/install/sd-encrypt
  40. }