summaryrefslogtreecommitdiffstats
path: root/main/truecrypt/APKBUILD
blob: 88cc2bbe026a09ef5608ebf721ded2c845522f01 (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
54
55
56
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=truecrypt
pkgver=7.1
pkgrel=3
pkgdesc="crypto"
url="http://www.truecrypt.org/"
arch="all"
license="AS-IS"
depends="device-mapper"
depends_dev=""
makedepends="nasm fuse-dev wxgtk2.8-dev"
install=""
subpackages=""
source="ftp://ftp.archlinux.org/other/tc/truecrypt-${pkgver}.tar.gz 
        ftp://ftp.archlinux.org/other/tc/pkcs-2.20.tar.gz
	truecrypt-arch-detection.patch
	execstack-fix.patch
	libdl.patch
	truecrypt.desktop
	"

_builddir="$srcdir"/truecrypt-7.1-source
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make PKCS11_INC="${srcdir}/pkcs-2.20" VERBOSE=1 \
		TC_EXTRA_CFLAGS="${CFLAGS}" \
		TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \
		TC_EXTRA_LFLAGS="${LDFLAGS} -fno-PIE" \
		NOSTRIP=1 \
		|| return 1
}

package() {
	cd "$_builddir"
	install -Dm755 Main/truecrypt "$pkgdir"/usr/bin/truecrypt || return 1
	install -Dm644 "$srcdir"/truecrypt.desktop \
		"$pkgdir"/usr/share/applications/truecrypt.desktop
}

md5sums="a8268630a870faff07af940f63fb29eb  truecrypt-7.1.tar.gz
ce6a707b79411e82e8e558aa03e764b0  pkcs-2.20.tar.gz
00ea70fa8437de877b31b027ac2b4060  truecrypt-arch-detection.patch
78e606e6582dacc3176d59ad4419b6bb  execstack-fix.patch
11d7a8d9b83012750f0161f6116a9af8  libdl.patch
183b9bf04a943454d4e216130bcbac01  truecrypt.desktop"