summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5b3dd96590f57e2c4e89f9c90b90ed469634ef1 (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
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=svgvi
pkgver=1.6.0
pkgrel=1
pkgdesc="SVG Text Editor and Viewer"
arch=(x86_64)
url="https://gitlab.com/pwmc/svgvi"
license=(GPL3)
depends=(gsvgtk gtksourceview3)
makedepends=(cmake git meson vala)
checkdepends=()
optdepends=()
_commit=09d6675810acf034cd3ef1fe069df78f74ea2854  # tags/1.6.0^0
source=("git+https://gitlab.com/pwmc/svgvi.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd $pkgname
}

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

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

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