mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
added community/earlyoom (#1932)
This commit is contained in:
parent
24f02f2af6
commit
42791abcd2
1 changed files with 36 additions and 0 deletions
36
community/earlyoom/PKGBUILD
Normal file
36
community/earlyoom/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
||||
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
|
||||
|
||||
# ALARM: Maxim Baz <$pkgname at maximbaz dot com>
|
||||
# - remove makedepend on pandoc
|
||||
|
||||
pkgname=earlyoom
|
||||
pkgver=1.7
|
||||
pkgrel=1
|
||||
pkgdesc="Early OOM Daemon for Linux"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/rfjakob/earlyoom"
|
||||
license=('MIT')
|
||||
depends=('glibc')
|
||||
optdepends=('systembus-notify: desktop notifications')
|
||||
backup=("etc/default/earlyoom")
|
||||
source=("https://github.com/rfjakob/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('ebda1279a813d9b0f7860ce5029ccf5ea9f8868be070f2eaf40f90f2e64b6414')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
sed "/systemctl|chcon/d" -ri Makefile
|
||||
sed '/^DynamicUser=/a SupplementaryGroups=proc' -i earlyoom.service.in
|
||||
sed 's;^EARLYOOM_ARGS="(.*)";EARLYOOM_ARGS="\1 -n --avoid '\''(^|/)(init|systemd|Xorg|sshd)$'\''";' -ri earlyoom.default
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make PREFIX=/usr SYSTEMDUNITDIR=/usr/lib/systemd/system VERSION=$pkgver earlyoom
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make install DESTDIR="$pkgdir" PREFIX=/usr SYSTEMDUNITDIR=/usr/lib/systemd/system
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
Loading…
Reference in a new issue