47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
|
# 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"
|
||
|
}
|