summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 589e0b501855e45a105e7de74e018f73f22bbe99 (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: Peter Reschenhofer <peter.reschenhofer@gmail.com>
pkgname=gnome-shell-extension-services-systemd-git
_pkgname=${pkgname%-git}

pkgver=r51.5f1a4f8
pkgrel=1
pkgdesc="Toggle systemd services on/off from a menu in the gnome shell top panel"
arch=('any')
url="https://github.com/petres/gnome-shell-extension-services-systemd"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
source=("git+https://github.com/petres/gnome-shell-extension-services-systemd")
_gitfolder="services-systemd@abteil.org"
md5sums=('SKIP')

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

build() {
    cd "$srcdir/$_pkgname"
    glib-compile-schemas "$_gitfolder/schemas/"
}

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