blob: b3379bfb60378638f394508c4b794707607d17a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: steffeno <steffeno dash etc at protonmail dot com>
pkgname=python-randcrack-git
pkgver=0.1.5.r28.6b8d738
pkgrel=1
pkgdesc='Python random module cracker / predictor'
arch=('any')
url='https://github.com/tna0y/Python-random-module-cracker'
license=('MIT')
makedepends=('git' 'python-setuptools' 'python-pip')
depends=('python')
source=("$pkgname"::"git+$url")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s.r%s.%s" \
"$(grep 'version' setup.py | head -n 1 | cut -d\' -f2)" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
python3 setup.py build
}
package() {
cd "$srcdir/$pkgname"
python3 setup.py install --root="$pkgdir" --optimize=1 || return 1
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|