1 # Maintainer: Spencer Judd <spencercjudd@gmail.com>
3 pkgname=xkcd-password-generator-git
6 pkgdesc="A simple command line script that generates XKCD-style multiword passwords."
8 url="https://github.com/redacted/XKCD-password-generator"
10 depends=('python2' 'words')
12 provides=('xkcd-password-generator')
14 _gitroot="git://github.com/redacted/XKCD-password-generator.git"
15 _gitname="xkcd-password-generator"
19 msg "Connecting to GIT server...."
21 if [ -d ${_gitname} ]; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
25 git clone ${_gitroot} ${_gitname}
28 msg "GIT checkout done or server timeout."
30 sed -i "s/^#\!\/usr\/bin\/env python$/#\!\/usr\/bin\/env python2/g" "${srcdir}/${_gitname}/xkcd-password.py"
34 install -D -m755 ${srcdir}/${_gitname}/xkcd-password.py ${pkgdir}/usr/bin/xkcd-password
35 install -D -m644 ${srcdir}/${_gitname}/2of12.txt ${pkgdir}/usr/share/dict/2of12
36 install -D -m644 ${srcdir}/${_gitname}/3esl.txt ${pkgdir}/usr/share/dict/3esl