PKGBUILD for dispass 0.1a8-1

This commit is contained in:
Tom Willemsen 2012-06-23 18:54:58 +02:00
parent c028a0f341
commit ffc407412b
2 changed files with 26 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.tar.*
src/
pkg/

View file

@ -1,23 +1,40 @@
# Maintainer: Tom Willemsen <tom@ryuslash.org>
pkgname=python2-dispass
pkgver=0.1a7
python=python2
name=DisPass
pkgname=$python-dispass
pkgver=0.1a8
pkgrel=1
pkgdesc="Generate and disperse/dispell passwords"
depends=('python2')
makedepends=('python2-distribute')
arch=('any')
source=(http://pypi.python.org/packages/source/D/DisPass/DisPass-$pkgver.tar.gz)
md5sums=(2dc25ea38db954e7233fe06e39e41120)
url="http://pypi.python.org/pypi/DisPass/"
license=("ISC")
source=(http://pypi.python.org/packages/source/D/DisPass/$name-$pkgver.tar.gz)
md5sums=(e857fea0397968ddbf881be382686468)
url="http://dispass.babab.nl/"
license=("custom:ISC")
changelog="src/$name-$pkgver/ChangeLog"
build() {
cd $srcdir/DisPass-$pkgver
cd $srcdir/$name-$pkgver
python2 setup.py build || return 1
}
package() {
cd $srcdir/DisPass-$pkgver
cd $srcdir/$name-$pkgver
python2 setup.py install --root=$pkgdir
install -Dm644 "${srcdir}/${name}-${pkgver}/skel/dot.dispass" \
"${pkgdir}/etc/skel/dot.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"
}