summaryrefslogtreecommitdiffstats
path: root/archlinux/PKGBUILD
blob: aaeabf6ad6bb68c90e3bfd52753e1d7e85860caa (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
# Maintainer: nignux <[email protected]>

pkgname=tomb
pkgver=20110429
pkgrel=2
pkgdesc="Crypto Undertaker, simple tool to manage encrypted storage, from the hashes of the dyne:bolic nesting mechanism."
arch=('i686' 'x86_64')
url="http://tomb.dyne.org/"
license=('GPL')
depends=('bc' 'cryptsetup' 
         'gnupg' 'gtk2>=2.16' 
         'libnotify' 'pinentry' 
         'sudo' 'zsh')
makedepends=('git' 'autoconf')
optdepends=('steghide: steganography support' 
            'dcfldd: dd progress bar support'
            'wipe: secure delete support')
install=${pkgname}.install
provides=('tomb')
 
_gitroot="git://code.dyne.org/tomb.git"
_gitname="tomb"
 
build() {
  cd ${srcdir}
  msg "Connecting to GIT server...."
 
  if [ -d ${_gitname} ] ; then
    cd ${_gitname} && git pull origin
    msg "The local files are updated."
  else
    git clone ${_gitroot} ${_gitname}
  fi

  msg "GIT checkout done"
  msg "Starting make..."
  
  cd ${srcdir}/${_gitname}
 
  autoreconf -i
  ./configure --prefix=/usr
  make
}
 
package() {
  cd ${srcdir}/${_gitname}
  make DESTDIR=${pkgdir} install
}