summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e9c8a0f7de74937b6fa07c324486e770a3e1fee (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
# Maintainer: swweetp <swweetp@outlook.com>
pkgname=turing-smart-screen-python
pkgver=3.9.1
pkgrel=1
epoch=
pkgdesc="A Python system monitor program and an abstraction library for small IPS USB-C (UART) displays"
arch=('any')
url="https://github.com/mathoudebine/turing-smart-screen-python"
license=('GPL-3.0-or-later')
groups=()
depends=(
	python
	python-pyserial
	python-yaml
	python-psutil
	python-pystray
	python-babel
	python-ruamel-yaml
	python-sv-ttk
	python-tkinter-tooltip
	python-uptime
	python-requests
	python-ping3
	python-pillow
	python-numpy
	python-gputil
	bash
)
makedepends=()
checkdepends=()
optdepends=(
	'python-pyamdgpuinfo: Support for AMD GPUs'
)
provides=()
conflicts=()
replaces=()
backup=(
	"opt/$pkgname/config.yaml"
)
options=()
install="${pkgname}.install"
changelog=
source=(
	"$pkgname-$pkgver.tar.gz::https://github.com/mathoudebine/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
	"${pkgname%-python}"
	"sysusers.conf"
	"tmpfiles.conf"
	"udev.rules"
)
noextract=()
sha256sums=('57174d0a109bd22acfac7c85a57a91035699e076e6d204f6e919398169d7e73b'
            'e82a96a7a1fce673af864b9295df6c9c0c2c2ec07ea0ce8eb74910d232b33f6a'
            'e648b026686611231538e1e67d32c1d9879da47d427f0d34c13e870b154506cf'
            'fa172b5ab1fbcaaf8b6f21e9080d12e27333a99863680fd768789ba7bafb1ae2'
            '3d3749981af15fcdacda784a159c4970ca8c6316dedd2eab477939ac97071f2c')
validpgpkeys=()

package() {
	install -Dm755 "${pkgname%-python}" -t "$pkgdir/usr/bin/"
	
	install -dm755 "$pkgdir/usr/lib/sysusers.d/"
	install -Dm644 "sysusers.conf" "$pkgdir/usr/lib/sysusers.d/${pkgname%-python}.conf"
	install -dm755 "$pkgdir/usr/lib/tmpfiles.d/"
	install -Dm644 "tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/${pkgname%-python}.conf"
	install -Dm644 "udev.rules" "$pkgdir/usr/lib/udev/rules.d/65-${pkgname%-python}.rules"

	cd "$pkgname-$pkgver"
	install -dm755 "$pkgdir/opt/"
	cp -a . "$pkgdir/opt/$pkgname/"

	chmod 664 "$pkgdir/opt/$pkgname/config.yaml"
}