aboutsummaryrefslogtreecommitdiffstats
path: root/testing/low-memory-monitor/APKBUILD
blob: 55815ace3ab75c9806f4d8c74ac550c71468f23d (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=low-memory-monitor
pkgver=1.0
pkgrel=0
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"
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 -Dm644 "$srcdir"/low-memory-monitor.initd "$pkgdir"/etc/init.d/low-memory-monitor
}
sha512sums="caf270aaf1b8f0bc3f7b57702d166106e3aadcc18113da94ea704296081a8c16ee6271b95d3ab8f431c718d0184dfec3976e3cb144aa5f077a15f4491ed64489  low-memory-monitor-1.0.tar.gz
3ff5e250974c4ac474da4eb45317acd2d782b42997ee336b7d006481043a5c0cba57b9d06d13ed68bca61bd228e31b47993eae4f9da4977a863eaaa704bce866  low-memory-monitor.initd
7cd0bfa4e2b374a3b7d252a18fc83ff4ecbd52d22c40e406e10ba776daad80e7dc3d3c339b556a89a97786fe541e2aff7f32097aed5473a069612344d981ab23  musl.patch"