blob: bda3a40737ef8f7d3b1e0af6dd80c0ac083be14c (
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.5
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=(
'26ee70b232509628af3dee99506bd093d95073bf33f569a47e380cfeeb85be0e'
'8e02963dfd6dbcb139ff2846742721f7a0e023a7ea353d93cb5cd66c40b08f3f'
)
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"
}
|