summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bde37b23898ffa0da041ef6fb424286c70c0450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=passphraseme
pkgrel=1
pkgver=0.1.5
_commit=569c3167167993326618689f87c7e0ea0e716699
pkgdesc="A quick and simple cryptographically secure script to generate high entropy passphrases using EFF's wordlists"
url="https://github.com/micahflee/passphraseme"
arch=('any')
license=('GPL3')
makedepends=('git')
depends=('python')
source=("git+https://github.com/micahflee/passphraseme.git#commit=${_commit}")
sha1sums=('SKIP')
build() {
    cd "passphraseme"
    sed -i passphraseme/__init__.py -e '1 s/^\#!\/usr\/bin\/env python3$/\#!\/usr\/bin\/python3/g'
    sed -i passphraseme/__init__.py -e 's/os.path.dirname(os.path.abspath(/os.path.dirname(os.path.realpath(/g'
}
package() {
    cd "passphraseme"
    mkdir -p "${pkgdir}/usr/share/passphraseme" "${pkgdir}/usr/bin"
    cp -r passphraseme/__init__.py passphraseme/wordlists/ "${pkgdir}/usr/share/passphraseme"
    ln -s /usr/share/passphraseme/__init__.py "${pkgdir}/usr/bin/passphraseme"
}