summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62e893f6f32b6c9ac8188383f28c26e2ef9309ba (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: Sung Mingi <FiestaLake@protonmail.com>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: ryanvade
pkgname=gnome-shell-extension-hibernate-status-git
pkgver=1.10.r18.g32008bc
pkgrel=1
pkgdesc="GNOME Shell extension that adds a hibernate/hybrid suspend button in Status menu."
arch=('any')
url="https://github.com/arelange/gnome-shell-extension-hibernate-status"
license=('GPL')
depends=('gnome-shell')
makedepends=('git')
provides=('gnome-shell-extension-hibernate-status')
conflicts=('gnome-shell-extension-hibernate-status')
source=('git+https://github.com/arelange/gnome-shell-extension-hibernate-status.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/${pkgname%-git}"
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}