summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25c12d361b096a3ed9f006222240b81b592e2048 (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
# Maintainer: Kai Yuan <kent.yuan@gmail.com>
pkgname=passwdmanager-git
pkgver=r64.6064018
pkgrel=1
pkgdesc="Password management tool"
arch=('any')
url="https://github.com/sk1418/passwdmanager"
license=('GPL3')
makedepends=('git')
depends=('wxpython' 'python2-crypto' 'python2-setuptools')
sha256sums=('SKIP')
sha512sums=('SKIP')
source="$pkgname::git+http://github.com/sk1418/${pkgname%-*}.git"

pkgver(){
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${pkgname}"
  find . -name "*.py" |xargs sed -i "s|/usr/bin/python|&2|" 
  python2 setup.py install --root="$pkgdir" --prefix="/usr"
}

# vim:set ts=2 sw=2 et: