summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d526988e95adf51f36eaa5fa53037f54e7e69a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This fork of cryptsetup made by Kriswebdev
# Archlinux package contributor is Dimadenisjuk <dimadenisjuk@yandex.ru>
pkgname=('cryptsetup-deluks')
pkgver=0.2BETA
pkgrel=3
epoch=
pkgdesc="Cryptsetup version with 'Deniable encryption' support"
arch=('any')
license=('GPL')
groups=()
depends=('device-mapper' 'libdevmapper.so' 'openssl' 'popt' 'libutil-linux'
	'libuuid.so' 'json-c' 'libjson-c.so' 'argon2' 'libargon2.so')
makedepends=('util-linux' 'git')
checkdepends=()
optdepends=()
provides=('cryptsetup' 'libcryptsetup.so=12-64' 'cryptsetup-deluks')
conflicts=('cryptsetup')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/kriswebdev/cryptsetup-deluks")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

prepare() {
	cd "$pkgname"
}

build() {
	cd "$pkgname"
	bash ./autogen.sh
  	sed -i 's/$PATH:\/sbin/$PATH:\/bin/g' configure
  	sed -i 's/$PATH:\/sbin/$PATH:\/bin/g' libtool
	sed -i 's/${exec_prefix}\/sbin/${exec_prefix}\/bin/g' configure
  	sed -i 's/\/sbin\//\/bin\//g' configure
	make
}

check() {
	cd "$pkgname"
	make -k check
}

package() {
	cd "$pkgname"
	# needs to change binary directory from /usr/sbin to /usr/bin
	make DESTDIR="$pkgdir/" install
	ln -s $pkgdir/usr/lib/libcryptsetup.so $pkgdir/usr/lib/libcryptsetup.so.12
	echo "see https://github.com/kriswebdev/cryptsetup-deluks/wiki/System-encryption for more information."
}