summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dafd76f570eb6c7ffb6693d2a77eabf6774a2943 (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
# Maintainer: Conor Anderson <conor@conr.ca>
pkgname=gnome-shell-extension-redshift-git
_pkgname=${pkgname%-git}
pkgver=r31.5c2c24f
pkgrel=1
pkgdesc="Redshift integration for GNOME Shell"
arch=('any')
url="https://github.com/tommie-lie/gnome-shell-extension-redshift"
license=('GPL3')
depends=()
makedepends=('git' 'autoconf' 'automake' 'pkg-config' 'gnome-common' 'intltool')
source=("git+https://github.com/tommie-lie/gnome-shell-extension-redshift")
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
  ./configure --prefix=/usr
  make
}

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