summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c368801e6e1946e5c95fcc547c50a3fb26cf539e (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
# Maintainer: kotontrion <kotontrion@tutanota.de>
pkgname=("libastal-gjs-git")
pkgver=r580.d538d8e
pkgrel=1
pkgdesc="gjs bindings for libstal."
arch=("x86_64")
license=(LGPL-2.1-only)
url="https://github.com/Aylur/astal"
makedepends=(
  "git"
  "meson")
depends=("gjs" "libastal-git" "libastal-io-git")
groups=("libastal")
provides=(libastal-gjs)
source=("git+${url}.git")
sha256sums=("SKIP")

pkgver(){
  cd astal
  # git describe --long --tags --abbrev=7 | sed "s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd astal/lang/gjs
  arch-meson build
  meson compile -C build
}

package() {
  cd astal/lang/gjs
  meson install -C build --destdir "$pkgdir"
}