pkgbuilds/python2-dispass/PKGBUILD
2012-06-23 19:13:25 +02:00

39 lines
1.3 KiB
Bash

# Maintainer: Tom Willemsen <tom@ryuslash.org>
python=python2
name=DisPass
pkgname=$python-dispass
pkgver=0.1a8
pkgrel=2
pkgdesc="Generate and disperse/dispell passwords"
depends=('python2')
makedepends=('python2-distribute')
arch=('any')
source=(http://pypi.python.org/packages/source/D/DisPass/$name-$pkgver.tar.gz)
md5sums=(e857fea0397968ddbf881be382686468)
url="http://dispass.babab.nl/"
license=("custom:ISC")
build() {
cd $srcdir/$name-$pkgver
python2 setup.py build || return 1
}
package() {
cd $srcdir/$name-$pkgver
python2 setup.py install --root=$pkgdir
install -Dm644 "${srcdir}/${name}-${pkgver}/skel/dot.dispass" \
"${pkgdir}/etc/skel/.dispass"
install -Dm644 "${srcdir}/${name}-${pkgver}/dispass.1" \
"${pkgdir}/usr/share/man/man1/dispass.1"
install -Dm644 "${srcdir}/${name}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/${name}-${pkgver}/README.rst" \
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
install -Dm644 "${srcdir}/${name}-${pkgver}/emacs/dispass.el" \
"${pkgdir}/usr/share/emacs/site-lisp/dispass.el"
install -Dm644 "${srcdir}/${name}-${pkgver}/emacs/README.rst" \
"${pkgdir}/usr/share/doc/${pkgname}/emacs/README.rst"
}