65 lines
2.2 KiB
Bash
65 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=cryptsetup
|
|
pkgver=2.7.4
|
|
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=(dce29903a58f7b774fe61191e7e6de955de0f40d9e27b0028ffcf3438c0e9480 # cryptsetup-2.7.4.tar.xz
|
|
289d07ae44392938ea06f45ccd13ad99960d69b7c14139b5f600a8df8d89214b) # cryptsetup-2.7.4.tar.sign
|
|
|
|
## abccea87a9d01532ab3868086fff0f9cdcb83de5312c3c274db414ed3c98797f cryptsetup-2.7.4-01-x86_64.pkg.tar.lz
|
|
|