summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a437d5c951987ff1d6bd2a14efc97e443eab171a (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
40
41
42
43
44
45
46
47
48
# Maintainer: éclairevoyant
# Contributor: Grey Christoforo <first name at last name dot net>

_pkgname=drafting
pkgname="$_pkgname-git"
pkgver=r857.0c81b82
pkgrel=1
epoch=0
pkgdesc='UI designer for GTK 4 that can be used standalone or integrated with GTK 4-based IDEs'
arch=('x86_64')
url='https://gitlab.gnome.org/chergert/drafting'
license=('GPL3')
depends=(
'gtk4>=4.3.0'
gobject-introspection
libpanel
libadwaita
)
makedepends=(
git
itstool
meson
ninja
)
source=("git+https://gitlab.gnome.org/chergert/drafting.git")
md5sums=('SKIP')

pkgver() {
  cd drafting
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd drafting
}

build() {
  arch-meson $_pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs || true
}

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