summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6892c66fda5605aff19b0a16cd11a500dc613d18 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=g3k
pkgver=0.16.0
pkgrel=2
pkgdesc="A 3DUI widget toolkit"
arch=('i686' 'x86_64')
url="https://gitlab.freedesktop.org/xrdesktop/g3k"
license=('MIT')
depends=('glibc' 'gxr' 'json-glib' 'libcanberra' 'pango' 'shaderc')
makedepends=('meson')
source=("$pkgname-$pkgver-src.tar.gz::https://gitlab.freedesktop.org/xrdesktop/g3k/-/archive/$pkgver/g3k-$pkgver.tar.gz")
sha256sums=('6022143a66f507f5c3524605c040b39156ab98c03ed9f071e05fdbd87bd561ef')


build() {
  cd "$pkgname-$pkgver"

  meson setup \
    --buildtype=plain \
    --prefix="/usr" \
    --sbindir="bin" \
    "_build"
  meson compile -C "_build"
}

check() {
  cd "$pkgname-$pkgver"

  #meson test -C "_build"
}

package() {
  cd "$pkgname-$pkgver"

  meson install -C "_build" --destdir "$pkgdir"
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/g3k"
}