blob: 968db06d4c873ec73c307571e68b61fb7d51eee7 (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=librefancontrol-bin
_pkgname=LibreFanControl
pkgver=1.0.5
pkgrel=5
pkgdesc="A way to control fans based on temperature"
arch=("x86_64")
url="https://github.com/wiiznokes/LibreFanControl"
license=('AGPL-3.0-only')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'libxrender'
'alsa-lib'
'java-runtime'
'libxext'
'i2c-tools'
'aspnet-runtime'
'libxtst'
'libglvnd'
'fontconfig'
)
makedepends=(
'gendesk'
)
source=(
"${pkgname%-bin}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}.tar.gz"
)
sha256sums=('23704f323b17d0f8d791667edc6fa4cf3807681fd44250deb5a2b1f768b98fc7')
build() {
gendesk -q -f -n --categories="System" --name="${_pkgname}" --exec="${pkgname%-bin} %U"
}
package() {
install -Dm755 -d "${pkgdir}/"{opt,etc/systemd/system,usr/bin,usr/local/bin/"${_pkgname}"Service}
cp -r "${srcdir}/${_pkgname}" "${pkgdir}/opt"
ln -sf "/opt/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${_pkgname}/lib/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
}
|