blob: eb79518b2113d49091560b7008707709d15ecec5 (
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
|
# Maintainer: Eren Simsek <18117384-caferen@users.noreply.gitlab.com>
# Contributor: Guy Boldon <gb@guyboldon.com>
pkgname=coolercontrol-bin
_pkgname=${pkgname%-bin}
_app_id="org.$_pkgname.CoolerControl"
pkgver=1.4.4
pkgrel=1
pkgdesc="A program to monitor and control your cooling devices (binary release)"
arch=('x86_64')
url="https://gitlab.com/coolercontrol/coolercontrol"
license=('GPL-3.0-or-later')
depends=(
'gtk3'
'hicolor-icon-theme'
'libappindicator-gtk3'
'webkit2gtk-4.1'
'coolercontrold-bin'
)
checkdepends=(
'appstream-glib'
'desktop-file-utils'
)
provides=("$_pkgname")
conflicts=(
"$_pkgname" # source package
)
groups=(coolercontrol-bin)
source=(
"https://gitlab.com/coolercontrol/coolercontrol/-/releases/$pkgver/downloads/packages/${_pkgname}_${pkgver}"
"https://gitlab.com/coolercontrol/coolercontrol/-/archive/$pkgver/$_pkgname-$pkgver.tar.gz"
)
sha256sums=(
'7d8e3a9455ec0a7bef4d8b894c20f59410f8fdcab49bf01a79d0a4d3e46156fd'
'acf5a27111122230d243e66eae85212f9c01a402b12028a8918fc785414bb713'
)
check() {
cd "${srcdir}/$_pkgname-$pkgver"
desktop-file-validate "packaging/metadata/$_app_id.desktop"
appstream-util validate-relax "packaging/metadata/$_app_id.metainfo.xml"
}
package() {
install -DTm755 "${_pkgname}_${pkgver}" "$pkgdir/usr/bin/${_pkgname}"
cd "${srcdir}/$_pkgname-$pkgver"
# desktop metadata
install -Dm644 "packaging/metadata/$_app_id.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 "packaging/metadata/$_app_id.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
install -Dm644 "packaging/metadata/$_app_id.png" -t "$pkgdir/usr/share/pixmaps/"
install -Dm644 "packaging/metadata/$_app_id.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$_pkgname"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname"
}
|