summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46a8ecc9f222c27ebd540f58db3feee60e822e67 (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
# Maintainer: Michael Schubert <mschu.dev at gmail>
# Contributor: Christian METZLER <neroth@xeked.com>
pkgname=gnome-shell-extension-weather-git
_pkgname=${pkgname%-git}
pkgver=r581.749bd0d
pkgrel=1
epoch=1
pkgdesc="A simple GNOME Shell extension for displaying weather informations from several cities"
arch=('any')
url="https://github.com/Neroth/gnome-shell-extension-weather"
license=('GPL3')
depends=('gnome-shell' 'dconf' 'gettext' 'pkg-config')
makedepends=('git' 'autoconf' 'automake' 'gnome-common' 'intltool')
replaces=('gnome-shell-extension-weather-neroth-git')
install='gschemas.install'
source=("git+https://github.com/Neroth/gnome-shell-extension-weather")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir" install
}