summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4399b3be1bb158ecb63092f0f84c02199f521de (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.6.r0.g4f3879f
pkgrel=1
pkgdesc="Provides a user friendly GUI to control the Hamachi client on Linux (development version)"
arch=('x86_64')
url="https://github.com/ztefn/haguichi"
license=('GPL3')
depends=('gtk3' 'libappindicator-gtk3' '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 setup -Denable-appindicator=true ..
  ninja
}

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