summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff3b8a59f3ed521e6edbe7f6c9a8006f6c3a5b74 (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
# Maintainer: Stephen Brandt <stephen@stephenbrandt.com>

pkgname=haguichi-git
pkgver=1.4.1.r0.g0cec78d
pkgrel=1
pkgdesc="Provides a user friendly GUI to control the Hamachi client on Linux (development version)"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
url="https://github.com/ztefn/haguichi"
license=('GPL3')
depends=('gtk3' 'libappindicator-gtk3' 'libnotify' 'logmein-hamachi')
makedepends=('git' 'meson' 'vala')
conflicts=('haguichi')
provides=('haguichi')
source=("git+$url")
sha512sums=('SKIP')
_pkg=haguichi

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

build() {
  cd $_pkg
  rm -rf build
  mkdir build && cd build

  meson -Denable-appindicator=true ..
  ninja
}

package() {
  DESTDIR="$pkgdir" ninja -C $_pkg/build install
}