summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f202e31261209f2599ff392a0afd7ae372ca5d5 (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
31
# Maintainer: Muflone http://www.muflone.com/contacts/english/

pkgname=pixelcolor-git
pkgver=0.2.0
pkgrel=1
pkgdesc="Get the screen pixel color"
url="http://www.muflone.com/pixelcolor"
arch=('any')
license=('GPL3')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
depends=('python-pillow')
conflicts=('pixelcolor')
provides=('pixelcolor')
source=("git+https://github.com/muflone/${pkgname%-*}")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-*}"
  git describe --always | sed 's|-|.|g'
}

build() {
  cd "${pkgname%-*}"
  python -m build --wheel --no-isolation
}

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