summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 560fb2d7c3ed59f46985c9929ecb0d9318d5642b (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
# Maintainer: Heinrich Kie├čling <heinrich@kiess.link>
pkgname=gnome-shell-extension-syspeek-gs-git
_pkgname=syspeek-gs

pkgver=r16.17991f8
pkgrel=1
pkgdesc="A simple CPU monitor for Gnome Shell inspired by SysPeek indicator"
arch=('any')
url="https://github.com/eugene-rom/syspeek-gs"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
source=("git+https://github.com/eugene-rom/syspeek-gs")
_buildfolder="build/syspeek-gs@gs.eros2.info"
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgname"
    make
}

package() {
    cd "$srcdir/$_pkgname"
    mkdir -p "$pkgdir/usr/share/gnome-shell/extensions"
    cp -r "$_buildfolder" "$pkgdir/usr/share/gnome-shell/extensions/"
}