summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6d1ce32acac5f37e4fcc3bb9afb9a6fb7022406 (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
# Maintainer: Jianqiu Zhang <void001@archlinuxcn.org>


pkgname=oomd-git
pkgver=20180811
pkgrel=1
pkgdesc='A userspace out-of-memory killer'
arch=('x86_64')
url="https://github.com/facebookincubator/oomd"
license=('GPL2')
depends=('jsoncpp')
makedepends=('meson' 'ninja' 'git' 'jsoncpp')
md5sums=('SKIP')

source=(
    "oomd::git+https://github.com/facebookincubator/oomd.git"
)


prepare() {
    echo "Prepare do nothing"
#    cp fix-meson-no-install.patch $srcdir/oomd/
#    cd $srcdir/oomd/
#    patch -p1 < fix-meson-no-install.patch
}

build() {
    cd $srcdir/oomd
    meson --prefix "$pkgdir/usr" build && ninja -C build
}

package() {
    cd $srcdir/oomd
    ninja -C build install
    install -Dm644 $srcdir/oomd/etc/desktop.json $pkgdir/etc/desktop.json.example
}