summaryrefslogtreecommitdiff
path: root/extra/truecrypt/PKGBUILD
blob: 4c7d585edd1593481ea0ba323fa35b3eb5d229cc (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
# $Id: PKGBUILD 105442 2011-01-08 22:25:31Z paul $
# Maintainer: Paul Mattal <paul.archlinux.org>

pkgname=truecrypt
pkgver=7.0a
pkgrel=2
pkgdesc="Free open-source cross-platform disk encryption software"
url="http://www.truecrypt.org/"
arch=('i686' 'x86_64')
license=('custom') # TrueCrypt License v2.6
depends=('fuse>=2.8.0' 'wxgtk>=2.8.9' 'libsm' 'device-mapper')
optdepends=('sudo: mounting encrypted volumes as nonroot users')
conflicts=('truecrypt-utils')
replaces=('truecrypt-utils')
options=('force')
# 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-7.0a.tar.gz' \
        'ftp://ftp.archlinux.org/other/tc/pkcs-2.20.tar.gz' \
        "${pkgname}.desktop") 

build() {
  export PKCS11_INC="${srcdir}/pkcs-2.20"

  cd ${srcdir}/${pkgname}-${pkgver}-source || return 1
  make || return 1

  # Install Binary
  install -D -m755 Main/${pkgname} ${pkgdir}/usr/bin/${pkgname} || return 1

  # Install Desktop file and Icon
  install -D -m644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
  install -D -m644 Resources/Icons/TrueCrypt-48x48.xpm ${pkgdir}/usr/share/pixmaps/truecrypt.xpm || return 1

  # Install License
  install -D -m644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/License.txt || return 1
}
md5sums=('0a61616bc5c5ad90e876b4014c004ac9'
         'ce6a707b79411e82e8e558aa03e764b0'
         '183b9bf04a943454d4e216130bcbac01')