summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f4bba568b802aaf9b8f07257bb0bd189e9ef351 (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
pkgname='python-devrandom'
pkgver=3.b253746
pkgrel=1
pkgdesc="/dev/random support for python's 'random' module."
arch=('any')
url='https://gitlab.com/ewtoombs/python-devrandom'
license=("MIT")
depends=('python')
makedepends=('python-setuptools')
source=('git+https://gitlab.com/ewtoombs/python-devrandom.git')
md5sums=('SKIP')

pkgver () {
    #_date="$(date '+%Y%m%d')"
    cd "$srcdir/$pkgname"
    echo "$(git rev-list --count master).$(git rev-parse --short master)"
}

package () {
    cd "$srcdir/$pkgname"

    python setup.py install --root="$pkgdir/"

    install -D 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}