2013-05-02 07:06:22 +08:00
|
|
|
# Extra packages for Chakra
|
|
|
|
|
|
|
|
pkgname=truecrypt
|
|
|
|
pkgver=7.1a
|
2014-04-17 06:16:17 +08:00
|
|
|
pkgrel=4
|
2013-05-02 07:06:22 +08:00
|
|
|
pkgdesc="Free open-source cross-platform disk encryption software"
|
|
|
|
url="http://www.truecrypt.org/"
|
2013-11-12 05:57:29 +08:00
|
|
|
arch=('x86_64')
|
2013-05-02 07:06:22 +08:00
|
|
|
license=('custom') # TrueCrypt License v2.6
|
2014-04-17 06:16:17 +08:00
|
|
|
depends=('fuse>=2.8.0' 'wxgtk2.8' 'libsm' 'device-mapper')
|
2013-05-02 07:06:22 +08:00
|
|
|
makedepends=('nasm')
|
|
|
|
optdepends=('sudo: mounting encrypted volumes as nonroot users')
|
|
|
|
conflicts=('truecrypt-utils')
|
|
|
|
replaces=('truecrypt-utils')
|
|
|
|
# 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/truecrypt-${pkgver}.tar.gz{,.sig} \
|
|
|
|
'ftp://ftp.archlinux.org/other/tc/pkcs-2.20.tar.gz' \
|
|
|
|
"${pkgname}.desktop" \
|
|
|
|
"${pkgname}-arch-detection.patch")
|
|
|
|
md5sums=('102d9652681db11c813610882332ae48'
|
|
|
|
'5bca3d15b35d0725ff3317e568062ad8'
|
|
|
|
'ce6a707b79411e82e8e558aa03e764b0'
|
|
|
|
'183b9bf04a943454d4e216130bcbac01'
|
|
|
|
'00ea70fa8437de877b31b027ac2b4060')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}-source"
|
|
|
|
|
|
|
|
# Work around buggy CPU type detection
|
|
|
|
patch -Np1 -i ../${pkgname}-arch-detection.patch
|
|
|
|
|
|
|
|
# Build
|
2014-04-17 06:16:17 +08:00
|
|
|
export WX_CONFIG=/usr/bin/wx-config-2.8
|
2013-05-02 07:06:22 +08:00
|
|
|
make PKCS11_INC="${srcdir}/pkcs-2.20" LFLAGS+="-ldl"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}-source"
|
|
|
|
|
|
|
|
# Install Binary
|
2013-11-11 02:40:09 +08:00
|
|
|
install -D -m755 Main/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
|
2013-05-02 07:06:22 +08:00
|
|
|
|
|
|
|
# Install Desktop file and Icon
|
2013-11-11 02:40:09 +08:00
|
|
|
install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
|
|
install -D -m644 Resources/Icons/TrueCrypt-48x48.xpm "${pkgdir}/usr/share/pixmaps/truecrypt.xpm"
|
2013-05-02 07:06:22 +08:00
|
|
|
|
|
|
|
# Install License
|
2013-11-11 02:40:09 +08:00
|
|
|
install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/License.txt"
|
2013-05-02 07:06:22 +08:00
|
|
|
}
|