summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d475ffc30b1a08cbc64dea3ea058a55f5d5f6a5 (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
41
42
43
44
45
46
47
48
49
# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com>
# Contributor: 

_gitname=monitor
_auxname=("pantheon-system-${_gitname}")
pkgname=("${_auxname}-git")
pkgver=r983.4a555e3
pkgrel=3
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'
	    'libhandy' 'libwnck3' 'json-glib' 'udisks2' 'wingpanel')
optdepends=('lib32-glib2')
makedepends=('git' 'meson' 'sassc' '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}/"
    cd subprojects
    git clone https://github.com/elementary/stylesheet
    cd stylesheet
    git checkout da0c4196ce246c6506a8a709f4140a098796fd4f
    cd ..
    git clone https://github.com/lcallarec/live-chart
    cd live-chart
    git checkout 5f8ddce715f6a9130955bc5f08437050265a317c
    cd ../..
    meson . _build --prefix=/usr -Dindicator-wingpanel=enabled
    ninja -C _build
}

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