27 lines
996 B
Bash
27 lines
996 B
Bash
# Maintainer: Danct12 <danct12@disroot.org>
|
|
# Contributor: Dan Johansen <strit@manjaro.org>
|
|
# Contributor: Philip Müller <philm@manjaro.org>
|
|
|
|
pkgname=gtherm
|
|
pkgver=0.0.3
|
|
pkgrel=1
|
|
pkgdesc="A simple daemon to monitor thermal zones and cooling devices"
|
|
url="https://source.puri.sm/Librem5/gtherm"
|
|
license=('GPL')
|
|
arch=('x86_64' 'armv7h' 'aarch64')
|
|
depends=('glib2' 'gobject-introspection')
|
|
makedepends=('meson' 'vala')
|
|
source=("https://source.puri.sm/Librem5/gtherm/-/archive/v$pkgver/gtherm-v$pkgver.tar.gz")
|
|
sha256sums=('a0bb7e3c8b5446e98acdd2a6c07567c88032a0c5b3e459317de6761a5bacf35f')
|
|
|
|
build() {
|
|
arch-meson $pkgname-v$pkgver build
|
|
ninja -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
mkdir -p $pkgdir/usr/lib/systemd/user/default.target.wants
|
|
install -Dm644 $pkgname-v$pkgver/debian/gthd.user.service $pkgdir/usr/lib/systemd/user/gthd.service
|
|
ln -sfv /usr/lib/systemd/user/gthd.service $pkgdir/usr/lib/systemd/user/default.target.wants/gthd.service
|
|
}
|