blob: 98e8b0a9774a64b1b3314858ebb0c8d313924b2c (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=libzim-glib
pkgver=4.0.0
pkgrel=1
_zts_ver=0.4
epoch=
pkgdesc="Partial GObject/C bindings for libzim"
arch=('x86_64')
url="https://github.com/birros/libzim-glib"
license=('GPL-3.0-or-later')
depends=(
'glib2'
'libzim'
)
makedepends=(
'gobject-introspection'
'meson'
'vala'
)
checkdepends=('python-gobject')
provides=('libzim-glib-4.0.so=0')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
"https://github.com/openzim/zim-testing-suite/releases/download/v${_zts_ver}/zim-testing-suite-${_zts_ver}.tar.gz")
noextract=("zim-testing-suite-${_zts_ver}.tar.gz")
sha256sums=('f5699b35fa4fce9acedb10a518b487c6b7b0050daf25ba661c0a5d9b817de7e5'
'c4c8f0c157b21b8e0c81ce016d2a92b528b2972acb76d5a5d9e04d934fa2e742')
prepare() {
cd "$pkgname-$pkgver"
# Copy zim-testing-suite tarball to tests directory
cp -f "$srcdir/zim-testing-suite-${_zts_ver}.tar.gz" src/tests/testdata
# Don't download zim-testing-suite tarball during build
sed -i '/curl -L/d' src/tests/testdata/Makefile
}
build() {
arch-meson "$pkgname-$pkgver" build -Dtests=true
meson compile -C build
}
check() {
meson test -C build --no-rebuild --print-errorlogs
}
package() {
meson install -C build --no-rebuild --destdir "$pkgdir"
}
|