summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bd6842e95ca51f48291e8db3d9e928415e302e0 (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
32
# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>

pkgname=pick-colour-picker
pkgver=1.51
pkgrel=1
pkgdesc="Colour picker that remembers where you picked colours from"
arch=(any)
url="https://www.kryogenix.org/code/pick/"
license=(MIT)
depends=(gtk3 python-cairo python-gobject)
makedepends=(git python-setuptools)
_commit=dec8f144918aa7964aaf86a346161beb7e997f09 #jan-22
source=("git+https://github.com/stuartlangridge/ColourPicker#commit=$_commit")
sha256sums=('SKIP')

prepare() {
  cd ColourPicker
  sed -i 's/if theme_icon and False:/if theme_icon:/' pick/__main__.py
  sed -i '/pixmaps/d' setup.py
}

build() {
  cd ColourPicker
  python3 setup.py build
}

package() {
  cd ColourPicker
  python3 setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 $pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}