blob: b1ecd8e2bec32db16e19e324243ce98ddfd9ad45 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
pkgname=libsingularity-git
_pkgname=libsingularity
pkgver=0.1.0.r0.g0000000
pkgrel=1
pkgdesc="GTK4 application and widget framework for the Singularity Desktop Environment"
arch=('x86_64' 'aarch64')
url="https://github.com/singularityos-lab/libsingularity"
license=('LGPL-2.1-only')
depends=(
'gtk4'
'gtk4-layer-shell'
'libgee'
'json-glib'
'libpeas-2'
'libsoup3'
)
makedepends=(
'git'
'meson'
'vala'
'gobject-introspection'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/singularityos-lab/libsingularity.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
local version
version=$(grep -m1 -oP "version:\s*'\K[^']+" meson.build)
printf "%s.r%s.g%s" \
"$version" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
arch-meson "$srcdir/$_pkgname" build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 \
"$srcdir/$_pkgname/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|