Date: Tuesday, March 3, 2020 @ 13:13:54 Author: mtorromeo Revision: 589651
archrelease: copy trunk to community-x86_64 Added: earlyoom/repos/ earlyoom/repos/community-x86_64/ earlyoom/repos/community-x86_64/PKGBUILD (from rev 589650, earlyoom/trunk/PKGBUILD) ----------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) Copied: earlyoom/repos/community-x86_64/PKGBUILD (from rev 589650, earlyoom/trunk/PKGBUILD) =================================================================== --- repos/community-x86_64/PKGBUILD (rev 0) +++ repos/community-x86_64/PKGBUILD 2020-03-03 13:13:54 UTC (rev 589651) @@ -0,0 +1,29 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@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" +}