summaryrefslogtreecommitdiff
path: root/pcr/tomb/PKGBUILD
blob: 2a0e787cf7080fb5b29b98576bbe6fe650bc1339 (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
# Maintainer (Arch): parazyd <parazyd@dyne.org>
# Contributor (Arch): nignux <nignux@freaknet.org>
# Contributor (Arch): fauno <fauno@parabola.nu>
# Contributor (Arch): BoySka
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgbase=tomb
pkgname=(tomb tomb-kdf)
pkgver=2.2
pkgrel=3
pkgdesc="Crypto Undertaker, a simple tool to manage encrypted storage"
arch=('i686' 'x86_64')
url="https://www.dyne.org/software/tomb/"
license=('GPL3')
install=${pkgname}.install

source=(
        https://files.dyne.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
        https://files.dyne.org/${pkgname}/${pkgname}-${pkgver}.tar.gz.sha

        )

# The first hash comes from the .sha file
sha256sums=('c0172ef8273c4be9322a52b6e503c8bf442ce74028605e198ed5d7e6d090ba86'
            '9ccf20b02f273ba2780ce5f322295d56ddf672b405520024c7c6d6e7720b86f6'
)

# The public key is found at http://jaromil.dyne.org/contact
# gpg --recv-keys 0x73b35da54acb7d10


build() {
  cd ${srcdir}/${pkgbase}-${pkgver}/extras/kdf-keys
  make
}

# The checks require root access
#check() {
#  cd ${srcdir}/${pkgname}-${pkgver}
#  make test
#}

package_tomb() {
  depends=('bc' 'cryptsetup' 'gnupg' 'sudo' 'zsh' 'e2fsprogs')
  optdepends=(
  'steghide: steganography'
  'dcfldd: show nice progress during massive I/O'
  'wipe: secure file deletion'
  'qrencode: for paper backups of keys'
  'swish-e: file content indexer'
  )
  arch=('any')

  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" PREFIX=/usr install
}

package_tomb-kdf() {
  pkgdesc="Crypto Undertaker extensions to improve password security"
  depends=('libgcrypt')

  cd "${srcdir}/tomb-${pkgver}/extras/kdf-keys"
  make DESTDIR="${pkgdir}" PREFIX=/usr install
}