summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac598a2c8749e0eb8253e2a9d32b74a7e82a95ec (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-pyciede2000
_name=${pkgname#python-}
pkgver=0.0.21
pkgrel=1
pkgdesc="Python library to calculate CIEDE2000 color difference."
arch=('any')
url="https://github.com/shameempk/pyciede2000"
license=('MIT')
depends=('python')
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('18bd261368df2540ad3b6542ef5204dd57c6840b6e33b7f0b63868353072879e')

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

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

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}