pkgbuilds/python2-dispass-git/PKGBUILD

46 lines
1.2 KiB
Text
Raw Normal View History

# -*- mode: sh; -*-
# Maintainer: Tom Willemse <tom@ryuslash.org>
2012-08-07 21:37:20 +02:00
_python=python2
_name=DisPass
2012-08-07 21:37:20 +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')
makedepends=('python2-distribute' 'git')
optdepends=('tk: for gdispass')
2012-08-07 21:37:20 +02:00
arch=('any')
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)
md5sums=('SKIP')
2012-08-07 21:37:20 +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() {
cd "$srcdir"/"$_name"
$_python setup.py build || return 1
2012-08-07 21:37:20 +02:00
}
package() {
cd "$srcdir/$_name"
$_python setup.py install --root="$pkgdir"
2012-08-07 21:37:20 +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"
install -Dm644 "${srcdir}/${_name}/LICENSE" \
2012-08-07 21:37:20 +02:00
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/${_name}/README.rst" \
2012-08-07 21:37:20 +02:00
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
install -Dm644 "${srcdir}/${_name}/zsh/_dispass" \
"${pkgdir}/usr/share/zsh/site-functions/_dispass"
2012-08-07 21:37:20 +02:00
}