summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee19ff4e803ec86787ecb0410aaa510eb08c6209 (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
# Maintainer: Matthew Gamble <git@matthewgamble.net>

pkgname=python-unstdlib
pkgver=1.7.2
pkgrel=3
pkgdesc="Unstandard Python library of useful and highly-reusable functions."
arch=("any")
url="https://github.com/shazow/unstdlib.py"
license=("MIT")
depends=("python")
makedepends=("python-setuptools")
source=("https://pypi.io/packages/source/u/unstdlib/unstdlib-${pkgver}.tar.gz")
sha256sums=("ef702a49bea7cefde837b7419f02d0b6274823cc51801ef5b9ba4ccb60227eb0")

build() {
    cd "unstdlib-${pkgver}"

    python setup.py build
}

package() {
    cd "unstdlib-${pkgver}"

    PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/python-unstdlib/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/python-unstdlib/README.md"
}