summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb459020c3f790c352f7f61cd5c1bf9bb7ea40e6 (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-simplediff
pkgver=1.1
pkgrel=1
pkgdesc="A Python module to annotate two versions of a list with the values that have been changed between the versions, similar to unix's diff but with a dead-simple Python interface."
arch=("any")
url="https://pypi.org/project/simplediff"
license=("custom")
depends=("python")
makedepends=("python-setuptools")
source=("https://pypi.io/packages/source/s/simplediff/simplediff-${pkgver}.tar.gz")
sha256sums=("db29e82c64ecc083e36308b584fc48985225421f85cb64d899329334ade32bda")

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

    python setup.py build
}

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

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

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