aboutsummaryrefslogtreecommitdiffstats
path: root/testing/veracrypt/APKBUILD
blob: b53ee0a899314b460c262b38ba8fe53a07735b19 (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
# Contributor: Sascha Paunovic <azarus@posteo.net>
# Maintainer: Sascha Paunovic <azarus@posteo.net>
pkgname=veracrypt
_pkgname=VeraCrypt
pkgver=1.22
pkgrel=3
pkgdesc="disk encryption with strong security based on TrueCrypt"
url="https://www.veracrypt.fr/"
arch="all !x86 !armhf !armv7 !s390x" # issues on linking
license="Apache-2.0"
depends="device-mapper"
makedepends="fuse-dev wxgtk-dev libsm-dev yasm"
options="!check" # no test suite provided
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://launchpad.net/veracrypt/trunk/$pkgver/+download/${_pkgname}_${pkgver}_Source.tar.bz2"
builddir="$srcdir/"

build() {
	cd "$builddir"/src
	make TC_EXTRA_LFLAGS="-ldl $LDFLAGS" \
		TC_EXTRA_CXXFLAGS="$CXXFLAGS $CPPFLAGS" \
		TC_EXTRA_CFLAGS="$CFLAGS $CPPFLAGS"
}

package() {
	cd "$builddir"/src
	install -Dm 755 Main/$pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm 644 Resources/Icons/VeraCrypt-256x256.xpm \
		"$pkgdir"/usr/share/pixmaps/veracrypt.xpm
	install -Dm 644 License.txt "$pkgdir"/usr/share/licenses/LICENSE
	mkdir -p "$pkgdir"/usr/share/applications
	cat >> "$pkgdir"/usr/share/applications/veracrypt.desktop <<-EOF
	[Desktop Entry]
	Type=Application
	Exec=veracrypt
	Icon=veracrypt.xpm
	Comment=Disk encryption with strong security based on TrueCrypt
	Terminal=false
	Name=VeraCrypt
	StartupNotify=true
	Categories=System;Administration;
	EOF
}

sha512sums="08795a42ab4eddb4792538d0207e6a45efad967abe257ba0a722b15f5bd43736f5e7cdce80b6c641dc1587c75f8f2b9b314f67e787a5a99031b5b47eea159b3d  veracrypt-1.22.tar.bz2"