blob: 4c31230ab931212de11f0cb1707a904a872294fe (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=low-memory-monitor
pkgver=2.0
pkgrel=1
pkgdesc="Daemon to monitor memory usage and signal processes and the kernel"
options="!check" # No testsuite
url="https://gitlab.freedesktop.org/hadess/low-memory-monitor"
arch="all"
license="GPL-3.0-or-later"
makedepends="meson glib-dev"
subpackages="$pkgname-openrc"
source="https://gitlab.freedesktop.org/hadess/low-memory-monitor/-/archive/$pkgver/low-memory-monitor-$pkgver.tar.gz
low-memory-monitor.initd
musl.patch
"
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
-Dgtk_doc=false \
-Dsystemdsystemunitdir=/DELETEME \
. output
ninja -C output
}
package() {
DESTDIR="$pkgdir" ninja -C output install
# Remove systemd service
rm -rf "$pkgdir"/DELETEME
install -Dm0755 "$srcdir"/low-memory-monitor.initd "$pkgdir"/etc/init.d/low-memory-monitor
}
sha512sums="f63d0ccd9e3978b3321150d03ef9e0df82a4c453116c29d008b64b8133f7cb5c32874d4f6400384bd22b5530c761327b50e252c2ff171061e0338bc9ccc8daee low-memory-monitor-2.0.tar.gz
3a214208355d138365af14d90ea790e49e04c3e3fb979796d6ce8f49c116212f1c98edaf05eb346ff033dd14a3d489d2f79a2844a572c5bc8e075f33958ac094 low-memory-monitor.initd
7cd0bfa4e2b374a3b7d252a18fc83ff4ecbd52d22c40e406e10ba776daad80e7dc3d3c339b556a89a97786fe541e2aff7f32097aed5473a069612344d981ab23 musl.patch"
|