summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 692d2a10c55d9163544eff71c6a5f2789031bbc4 (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
34
35
36
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: David Baum <david.baum@naraesk.eu>

pkgname=luminance-git
_pkgname=luminance
pkgver=0.1.0.r0.g33a274c
pkgrel=1
epoch=
pkgdesc="Luminance is a Philips Hue client for Linux written in Python and GTK+"
arch=('any')
url="https://github.com/craigcabrey/luminance"
license=('GPL2')
depends=('python' 'dconf' 'hicolor-icon-theme' 'python-phue')
makedepends=('git' 'autoconf' 'python' 'python-requests' 'gtk3' 'pygobject-devel')
provides=('luminance=$pkgver')
conflicts=('luminance')
source=('git+https://github.com/craigcabrey/luminance.git')
sha256sums=('SKIP')

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


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

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