summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 109994a11ec1117c17cefb2b0c96b4a40900ce1a (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
# Maintainer: Yinr <yinr@yinr.cc>

_pkgname=gconnect
pkgname=$_pkgname-git
pkgver=44.712fc22
pkgrel=1
pkgdesc="KDEConnect implementation in Vala"
arch=('i686' 'x86_64')
depends=('gtk3' 'libpeas' 'libgee' 'gnutls' 'json-glib' 'libnotify')
makedepends=('at-spi2-atk' 'git' 'vala' 'json-glib' 'glib2' 'gobject-introspection' 'meson')
url="https://github.com/getzze/gconnect"
license=('GPL3')
install=$pkgname.install
provides=($_pkgname)
conflicts=($_pkgname)
source=('gconnect::git+https://github.com/getzze/gconnect.git#branch=master')
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd "$_pkgname"
  mkdir build
}

build() {
  cd "$_pkgname/build"
  meson --prefix=/usr/
  meson configure -Dgconnect_bluetooth=true
  ninja
}

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