updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / cpm / PKGBUILD
blob0bd9b8ce56115a4a3e4154e61d616a6834930946
1 # Maintainer: Daniel Mendler <mail at daniel-mendler.de>
2 # Contributor: Daniel Mendler <mail at daniel-mendler.de>
3 pkgname=cpm
4 pkgver=20110324
5 pkgrel=1
6 pkgdesc='Curses based password manager using PGP-encryption'
7 arch=(i686 x86_64)
8 url='http://github.com/comotion/cpm'
9 license=(GPL)
10 depends=(dotconf libxml2 gpgme)
11 makedepends=(git libcdk)
13 _gitroot='git://github.com/comotion/cpm.git'
14 _gitname='cpm'
16 build() {
17   cd $srcdir
18   msg 'Connecting to GIT server....'
20   if [ -d $_gitname ] ; then
21     (cd $_gitname; git pull origin)
22     msg 'The local files are updated.'
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg 'GIT checkout done or server timeout'
29   cd cpm
30   ./configure --prefix=/usr --with-cracklib-dict=/usr/share/cracklib/pw_dict
31   make
34 package() {
35   cd $srcdir/cpm
36   install -D -m755 cpm $pkgdir/usr/bin/cpm
39 setconf() {
40   local tmp="$1.tmp"
41   mv "$1" "$tmp"
42   sed "s|$2[^=]*=.*|$2=$3|" "$tmp" > "$1"
43   rm -f "$tmp"