aboutsummaryrefslogtreecommitdiffstats
path: root/main/truecrypt/APKBUILD
blob: e63e0ac0b80ff18dd3fc07fd5d68a2812289102c (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
57
58
59
60
61
62
63
64
65
66
67
68
69
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=truecrypt
pkgver=7.1a
pkgrel=0
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="https://sources.archlinux.org/other/tc/truecrypt-${pkgver}.tar.gz
        https://sources.archlinux.org/other/tc/pkcs-2.20.tar.gz
	truecrypt-arch-detection.patch
	execstack-fix.patch
	libdl.patch
	truecrypt.desktop
	"

_builddir="$srcdir"/truecrypt-$pkgver-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="102d9652681db11c813610882332ae48  truecrypt-7.1a.tar.gz
ce6a707b79411e82e8e558aa03e764b0  pkcs-2.20.tar.gz
00ea70fa8437de877b31b027ac2b4060  truecrypt-arch-detection.patch
78e606e6582dacc3176d59ad4419b6bb  execstack-fix.patch
11d7a8d9b83012750f0161f6116a9af8  libdl.patch
183b9bf04a943454d4e216130bcbac01  truecrypt.desktop"
sha256sums="e6214e911d0bbededba274a2f8f8d7b3f6f6951e20f1c3a598fc7a23af81c8dc  truecrypt-7.1a.tar.gz
d2bf64094eec48b4695a15d91c05fe4469485a5cc6b0efc0ee75a20c095bd40d  pkcs-2.20.tar.gz
a1e1307582c8d890d474dbf69656e1c1a51d57bba721c596986bfb34210be95e  truecrypt-arch-detection.patch
c5f437b173bc0abef978bbb160f53ca058469c696de1ce8968e3cef2d3640d79  execstack-fix.patch
8a8668080ae061eb31c859cfe7f596b5ed0d3911b9df1535a197a67900c6da62  libdl.patch
c1ed83cf908780aa69a49f517b7336b5985c6ee38b067749272191a878a52923  truecrypt.desktop"
sha512sums="b5e766023168015cb91bfd85c9e2621055dd98408215e02704775861b5070c5a0234a00c64c1bf7faa34e6d0b51ac71cd36169dd7a6f84d7a34ad0cfa304796a  truecrypt-7.1a.tar.gz
d69d90040da5bc93f91041ed9404f1614a3b1bdc8eddc2bbbd19367f12d2416a6f3af8b0071d77e1273d627148c63ebe7ebe332878fbe9adb8ae33dcc723f473  pkcs-2.20.tar.gz
fac6963c65720f0b13486ff22bdcc2e31e78c39ede2b9561b2c4037ef2c0375f04c4d51dc6067c37aaeb664c3ed70e5747488389737c41807680750c26a8f084  truecrypt-arch-detection.patch
a5d843a0eac7f14668e8c722a85ab8d871f64cf0488a9d9acd33235f077e74af3d191a3a6c18ddd25e8b487ef56b3afdbb6f3d7877113687a8101a1b855c366e  execstack-fix.patch
83a8daefe3137581daab0aed599a9b47ec19a7403bdca424eb86fce482ddefb0a513ad18522a7d9b03d18fb771502ef378c76626521d8184c2e200e23d499737  libdl.patch
1ac13f1888319d6d2f10e03a61e22d68e5fe4a61bbdf8ad364a0fe6f6712cc53dbc1a98fff3fda2ecd57dbe67fcc24fb358c0805ab47eaa12cf14d48f1067e51  truecrypt.desktop"