[arch-commits] Commit in (earlyoom earlyoom/trunk earlyoom/trunk/PKGBUILD)

Massimiliano Torromeo mtorromeo at archlinux.org
Tue Mar 3 13:13:38 UTC 2020


    Date: Tuesday, March 3, 2020 @ 13:13:37
  Author: mtorromeo
Revision: 589650

Added earlyoom package

Added:
  earlyoom/
  earlyoom/trunk/
  earlyoom/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Added: earlyoom/trunk/PKGBUILD
===================================================================
--- earlyoom/trunk/PKGBUILD	                        (rev 0)
+++ earlyoom/trunk/PKGBUILD	2020-03-03 13:13:37 UTC (rev 589650)
@@ -0,0 +1,29 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=earlyoom
+pkgver=1.4
+pkgrel=1
+pkgdesc="Early OOM Daemon for Linux"
+arch=('x86_64')
+url="https://github.com/rfjakob/earlyoom"
+license=('MIT')
+makedepends=('pandoc')
+backup=("etc/default/earlyoom")
+source=("https://github.com/rfjakob/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('859d044fc5149fb446e4f3cf3278a524c5f74084026152356de6b7c1270b47ce')
+
+prepare() {
+    cd "$pkgname-$pkgver"
+    sed "/systemctl|chcon/d" -ri Makefile
+}
+
+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"
+}



More information about the arch-commits mailing list