summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7096a2c0da32da21ef148e2eedee52bd87a1fab6 (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
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Contributor: Philip Goto <philip.goto@gmail.com>

_pkgname=libadwaita
pkgname=$_pkgname-git
pkgver=1.1.0.r.g699c5ea
pkgrel=2
pkgdesc="Library full of GTK+ widgets for mobile phones"
url="https://gitlab.gnome.org/exalm/$_pkgname"
license=(LGPL)
arch=(i686 x86_64 armv7h aarch64)
depends=(gtk4)
makedepends=(git gobject-introspection meson vala)
checkdepends=(xorg-server-xvfb)
source=("git+$url")
provides=($_pkgname)
conflicts=($_pkgname)
md5sums=(SKIP)

  pkgver() {
    cd $_pkgname
  
    printf "%s.r%s.g%s" "$(grep -m1 'version' meson.build | sed -r 's/([^0-9]*([0-9.]+)).*/\2/')" \
                        "$(git describe --tags --long | cut -d '-' -f 2)" \
                        "$(git rev-parse --short HEAD)"
  }

build() {
    arch-meson $_pkgname build -Dgtk_doc=false -Dexamples=true
    DESTDIR="$pkgdir" ninja -C build
}

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