summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb1a275cb641eaaf99c9d58084e34d70ba7fabb0 (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: American_Jesus <american.jesus.pt AT gmail DOT com>
# Contributor: Suhaimi Ghazali <serdotlinecho@gmail.com>

_pkgname=mconnect
pkgname=$_pkgname-git
pkgver=309.332cadb
pkgrel=1
pkgdesc="KDE Connect protocol implementation in Vala/C"
arch=('i686' 'x86_64')
depends=('gtk3' 'libgee' 'gnutls' 'json-glib' 'libnotify')
makedepends=('at-spi2-atk' 'git' 'vala' 'json-glib' 'glib2' 'gobject-introspection' 'meson')
url="https://github.com/bboozzoo/mconnect"
license=('GPL2')
install=$pkgname.install
provides=($_pkgname)
conflicts=($_pkgname)
source=('mconnect::git+https://github.com/bboozzoo/mconnect.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/
  ninja
}

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