summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0df4dc133a535368851b144ee780438ef1f5e4c9 (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: Gabriele Musco <emaildigabry@gmail.com>
# Upstream URL: https://github.com/gabmus/ardhue

pkgname=ardhue-git
pkgver=0.1
pkgrel=1
pkgdesc='Interface to control ArdHue Arduino based digital RGB system'
arch=('any')
url='https://github.com/gabmus/ardhue'
license=('GPL3')
depends=('python-pyserial' 'gtk3>=3.14' 'python')
makedepends=('git' 'meson')
provides=('ardhue')
conflicts=('ardhue')
source=("ardhue::git+https://github.com/gabmus/ardhue")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/ardhue"
  rm -rf build
  mkdir build
  cd build
  meson --prefix /usr --buildtype release ..
  ninja
}

package() {
  cd "$srcdir/ardhue"
  cd build
  DESTDIR="$pkgdir" ninja install
}