2013-05-25 01:48:04 +02:00
|
|
|
# -*- mode: sh; -*-
|
|
|
|
# Maintainer: Tom Willemse <tom@ryuslash.org>
|
2012-08-07 21:37:20 +02:00
|
|
|
|
2013-05-25 01:48:04 +02:00
|
|
|
_python=python2
|
|
|
|
_name=DisPass
|
2012-08-07 21:37:20 +02:00
|
|
|
|
2013-05-25 01:48:04 +02:00
|
|
|
pkgname=$_python-dispass-git
|
2014-04-23 22:41:06 +02:00
|
|
|
pkgver=20140415
|
2012-08-07 21:37:20 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Generate and disperse/dispell passwords"
|
|
|
|
depends=('python2')
|
2013-05-25 01:48:04 +02:00
|
|
|
makedepends=('python2-distribute' 'git')
|
|
|
|
optdepends=('tk: for gdispass')
|
2012-08-07 21:37:20 +02:00
|
|
|
arch=('any')
|
2013-05-25 01:48:04 +02:00
|
|
|
source=("git://github.com/babab/$_name.git")
|
2012-08-07 21:37:20 +02:00
|
|
|
url="http://dispass.babab.nl/"
|
|
|
|
license=("custom:ISC")
|
|
|
|
conflicts=(python2-dispass)
|
2013-05-25 01:48:04 +02:00
|
|
|
md5sums=('SKIP')
|
2012-08-07 21:37:20 +02:00
|
|
|
|
2013-05-25 01:48:04 +02:00
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir"/"$_name"
|
|
|
|
git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
|
|
|
|
}
|
2012-08-07 21:37:20 +02:00
|
|
|
|
|
|
|
build() {
|
2013-05-25 01:48:04 +02:00
|
|
|
cd "$srcdir"/"$_name"
|
|
|
|
$_python setup.py build || return 1
|
2012-08-07 21:37:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-05-25 01:48:04 +02:00
|
|
|
cd "$srcdir/$_name"
|
|
|
|
$_python setup.py install --root="$pkgdir"
|
2012-08-07 21:37:20 +02:00
|
|
|
|
2013-05-25 01:48:04 +02:00
|
|
|
install -Dm644 "${srcdir}/${_name}/skel/labelfile" \
|
|
|
|
"${pkgdir}/etc/skel/.dispass/labels"
|
|
|
|
install -Dm644 "${srcdir}/${_name}/dispass.1" \
|
2012-08-07 21:37:20 +02:00
|
|
|
"${pkgdir}/usr/share/man/man1/dispass.1"
|
2013-05-25 01:48:04 +02:00
|
|
|
install -Dm644 "${srcdir}/${_name}/LICENSE" \
|
2012-08-07 21:37:20 +02:00
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2013-05-25 01:48:04 +02:00
|
|
|
install -Dm644 "${srcdir}/${_name}/README.rst" \
|
2012-08-07 21:37:20 +02:00
|
|
|
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
2013-05-25 01:48:04 +02:00
|
|
|
install -Dm644 "${srcdir}/${_name}/zsh/_dispass" \
|
|
|
|
"${pkgdir}/usr/share/zsh/site-functions/_dispass"
|
2012-08-07 21:37:20 +02:00
|
|
|
}
|