commit d8c522c9246783ef7e32804ab8209fd291053e32 Author: Florian Dejonckheere <florian@floriandejonckheere.be> Date: Tue May 7 19:09:01 2013 +0200 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..d6aea1903b4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = truecrypt-nogui + pkgdesc = Free open-source cross-platform disk encryption software (CLI) + pkgver = 7.1a + pkgrel = 1 + url = http://www.truecrypt.org/ + arch = i686 + arch = x86_64 + license = custom:truecrypt + makedepends = nasm + depends = fuse>=2.8.0 + depends = device-mapper + optdepends = sudo: mounting encrypted volumes as nonroot users + provides = truecrypt + conflicts = truecrypt + source = ftp://ftp.archlinux.org/other/tc/truecrypt-7.1a.tar.gz + source = ftp://ftp.archlinux.org/other/tc/pkcs-2.20.tar.gz + source = http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz + md5sums = 102d9652681db11c813610882332ae48 + md5sums = ce6a707b79411e82e8e558aa03e764b0 + md5sums = 2fa39da14bc06ea86fe902579fedc5b1 + +pkgname = truecrypt-nogui + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..ef0bc2871ae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Florian Dejonckheere <florian[at]floriandejonckheere.be> +# Contributor: Corrado Primier <ilbardo.gmail.com> + +pkgname=truecrypt-nogui +_pkgname=truecrypt +pkgver=7.1a +pkgrel=1 +pkgdesc="Free open-source cross-platform disk encryption software (CLI)" +url="http://www.truecrypt.org/" +arch=('i686' 'x86_64') +license=('custom:truecrypt') +depends=('fuse>=2.8.0' 'device-mapper') +makedepends=('nasm') +optdepends=('sudo: mounting encrypted volumes as nonroot users') +conflicts=('truecrypt') +provides=('truecrypt') +# N.B. Truecrypt's web-based source download is incompatible with +# makepkg. Source has been placed on ftp.archlinux.org instead +source=("ftp://ftp.archlinux.org/other/tc/${_pkgname}-${pkgver}.tar.gz" \ + 'ftp://ftp.archlinux.org/other/tc/pkcs-2.20.tar.gz'\ + 'http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz') +md5sums=('102d9652681db11c813610882332ae48' + 'ce6a707b79411e82e8e558aa03e764b0' + '2fa39da14bc06ea86fe902579fedc5b1') + +# Source: http://kenfallon.com/truecrypt-on-a-respberry-pi-no-gui/ +build() { + export PKCS11_INC="${srcdir}/pkcs-2.20" + cd ${srcdir}/${_pkgname}-${pkgver}-source + make NOGUI=1 WX_ROOT="${srcdir}/wxWidgets-2.8.12" wxbuild + make NOGUI=1 WXSTATIC=1 +} + +package() { + # Install Binary + install -D -m755 ${srcdir}/${_pkgname}-${pkgver}-source/Main/${_pkgname} \ + ${pkgdir}/usr/bin/${_pkgname} + + # Install License + install -D -m644 ${srcdir}/${_pkgname}-${pkgver}-source/License.txt \ + ${pkgdir}/usr/share/licenses/${pkgname}/License.txt +}