summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f848eb81ab587d910ada14aa7b895ab404f2d1d0 (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: Ianis Vasilev <ianis@ivasilev.net>
pkgname=python-diffimg
_pkgbasename=${pkgname:7}
pkgver=0.3.0
pkgrel=2
pkgdesc='Get the % difference in images + generate a diff image'
arch=(any)
url="https://pypi.org/project/${_pkgbasename}/"
license=(MIT)
depends=(python python-pillow)
makedepends=(python-setuptools python-build python-installer python-wheel)
source=("https://pypi.io/packages/source/${_pkgbasename:0:1}/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz")
sha256sums=('5f9bfc5417430729205b70e68f22bade19fed43d963daa7fb45d9447d0a01a24')
arch=(any)

_fullsrcdir() {
    echo "${srcdir}/${_pkgbasename}-${pkgver}"
}

build() {
    cd "$(_fullsrcdir)"
    python -m build --wheel --no-isolation
}

package() {
    cd "$(_fullsrcdir)"
    python -m installer --destdir="$pkgdir" dist/*.whl
}