summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da87bb92fc317b496d034542a08ec12824aab556 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Melvin Vermeeren <mail@mel.vin>
# Co-Maintainer: IanDury <iandury@xs4all.nl>
pkgname=openzwave-git
_gitname="open-zwave"
pkgver=r4171.25076055
pkgrel=1
pkgdesc="Opensource Z-Wave control"
url="http://www.openzwave.com"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
license=('LGPL')
depends=('libsystemd')
makedepends=('doxygen' 'git')
conflicts=('openzwave' 'openzwave-svn')
provides=('openzwave')
install="$pkgname.install"
source=("git://github.com/OpenZWave/open-zwave.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_gitname"

  printf 'r%s.%s' \
    "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_gitname"

  if [[ -f cpp/src/vers.cpp ]]
  then
    echo "Removing cpp/src/vers.cpp to ensure version number update."
    rm 'cpp/src/vers.cpp'
  fi

  make
}

package() {
  cd "$_gitname"

  make \
    DESTDIR="$pkgdir" \
    PREFIX='/usr' \
    instlibdir='/usr/lib' \
    sysconfdir='/etc/openzwave' \
    install
}

# vim:set ts=2 sw=2 et: