summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5050d25ac086f9032b74e657f96be3e8ce318dd5 (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
39
40
# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com>
# Contributor: 

gitname=monitor
auxname=("pantheon-system-${gitname}")
pkgname=("${auxname}-git")
pkgver=r347.e3ba5e0
pkgrel=1
pkgdesc="Manage processes and monitor system resources. 
        Designed for elementary OS."
arch=('i686' 'x86_64')
url="https://github.com/stsdc/${gitname}"
license=('GPL3')
depends=('granite' 'gtk3' 'bamf' 'glib2' 'glibc' 
	'libgee' 'libgtop' 'libwnck3' 'wingpanel')
optdepends=('lib32-glib2')
makedepends=('git' 'meson' 'vala')
provides=("${auxname}")
conflicts=("${auxname}")
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd "${gitname}"
    ( set -o pipefail
        git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "${gitname}/"
    meson . _build --prefix=/usr
    ninja -C _build
}

package() {
    cd "${gitname}/"
    DESTDIR="${pkgdir}" ninja -C _build install
}