blob: 357b93104463f3f0faeaac5a52ae03c30f177d61 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#! /bin/bash
# Maintainer:
# - Alberto Salvia Novella (tinyurl.com/contact-alberto)
# Contributors:
# - Bruno Pagani <archange@archlinux.org>
# - Cedric Girard <girard.cedric@gmail.com>
# - foxbunny <bg.branko@gmail.com>
# - Timothy Redaelli <timothy.redaelli@gmail.com>
pkgname="displaycal-git"
provides=("displaycal")
conflicts=("displaycal")
pkgdesc="Calibrates display color"
url="https://github.com/eoyilmaz/displaycal-py3"
license=("GPL-3.0-or-later")
pkgver=nightly.r34.g12f9644
pkgrel=1
arch=("x86_64")
makedepends=(
git
libxrandr
libxxf86vm
python-setuptools
)
depends=(
argyllcms
colord
dbus
dbus-python
glib2
python-certifi
python-distro
python-numpy
python-pillow
python-send2trash
python-wxpython
python-zeroconf
)
optdepends=(
"colord-kde: if using plasma-x11-session"
"xiccd: if using any other X11 session"
)
source=(
"git+${url}.git"
)
sha256sums=(
SKIP
)
pkgver () {
cd "${srcdir}/displaycal-py3"
git describe --long --tags --abbrev=7 |
sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build () {
cd "${srcdir}/displaycal-py3"
python setup.py build
}
package () {
PackageApp
RemoveBuildFiles
}
PackageApp () {
cd "${srcdir}/displaycal-py3"
XDG_CONFIG_DIRS=/etc/xdg python setup.py install --root="${pkgdir}" --optimize=1
}
RemoveBuildFiles () {
local SitePackages; SitePackages="$(SitePackages)"
rm --recursive "${pkgdir}${SitePackages}/build"
}
SitePackages () {
python -c "import site; print(site.getsitepackages()[0])"
}
|