summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb378b17e32248cd59370b1b26a5f6209086b4ed (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
# Maintainer: Mitchell Renouf <mitchellarenouf@gmail.com>

_pkgbase=snapd-glib
pkgbase=snapd-glib-git
pkgname=snapd-glib-git
pkgdesc="Library to allow GLib/Qt based applications access to snapd, the daemon that controls Snaps"
depends=( 'libsoup' 'json-glib')
pkgver=1.44.r6.g44ae271
pkgrel=1
arch=('x86_64')
url="https://github.com/snapcore/snapd-glib"
license=('GPL3')
makedepends=('git'  'libsoup' 'json-glib' 'qt5-declarative' 'qt5-base' 'glib2' 'gtk-doc' 'autoconf' 'pkg-config' 'automake' 'libtool')
conflicts=($_pkgbase)
options=('!strip' 'emptydirs')
source=("git+https://github.com/snapcore/$_pkgbase.git")
sha256sums=('SKIP')

provides=($_pkgbase)


pkgver() {
    cd "$srcdir/snapd-glib"
    git describe --tag | sed -r 's/([^-]*-g)/r\1/; s/-/./g'
}

build() {
  cd "$_pkgbase"
 ./autogen.sh --disable-silent-rules --enable-gtk-doc --prefix=/usr
  make $MAKEFLAGS
}

package_snapd-glib-git() {
  cd "$_pkgbase"
  make install DESTDIR="$pkgdir"
}