Add python2-dispass-git
This commit is contained in:
parent
46a8c23fdd
commit
9f902a6fe6
1 changed files with 46 additions and 0 deletions
46
python2-dispass-git/PKGBUILD
Normal file
46
python2-dispass-git/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: Tom Willemsen <tom@ryuslash.org>
|
||||
|
||||
python=python2
|
||||
name=DisPass
|
||||
|
||||
pkgname=$python-dispass-git
|
||||
pkgver=20120807
|
||||
pkgrel=1
|
||||
pkgdesc="Generate and disperse/dispell passwords"
|
||||
depends=('python2')
|
||||
makedepends=('python2-distribute')
|
||||
arch=('any')
|
||||
url="http://dispass.babab.nl/"
|
||||
license=("custom:ISC")
|
||||
conflicts=(python2-dispass)
|
||||
|
||||
_gitroot=git://github.com/babab/DisPass.git
|
||||
_gitname=master
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
|
||||
if [ ! -d $name ]; then
|
||||
git clone $_gitroot $name;
|
||||
cd $name
|
||||
else
|
||||
cd $name
|
||||
git pull origin $_gitname
|
||||
fi
|
||||
|
||||
python2 setup.py build || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$name"
|
||||
python2 setup.py install --root="$pkgdir"
|
||||
|
||||
install -Dm644 "${srcdir}/${name}/skel/dot.dispass" \
|
||||
"${pkgdir}/etc/skel/.dispass"
|
||||
install -Dm644 "${srcdir}/${name}/dispass.1" \
|
||||
"${pkgdir}/usr/share/man/man1/dispass.1"
|
||||
install -Dm644 "${srcdir}/${name}/LICENSE" \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
install -Dm644 "${srcdir}/${name}/README.rst" \
|
||||
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
||||
}
|
Loading…
Reference in a new issue