43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'libaccounts-glib'
|
|
pkgname=libaccounts-glib
|
|
version=1.26
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir qemu"
|
|
configure_args="-Dpy-overrides-dir=/${py3_sitelib}/gi/overrides"
|
|
hostmakedepends="gtk-doc pkg-config glib-devel gobject-introspection vala
|
|
libxml2 dbus-test-runner"
|
|
makedepends="sqlite-devel libxml2-devel libglib-devel python3-gobject-devel
|
|
check-devel"
|
|
checkdepends="dbus xvfb-run"
|
|
short_desc="GLib-based client library for the accounts database"
|
|
maintainer="John Rowley <enterthevoid@codesector.co>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://gitlab.com/accounts-sso/libaccounts-glib"
|
|
distfiles="https://gitlab.com/accounts-sso/${pkgname}/-/archive/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=1e245338186bd481690d259d3a8b412c20c17149fcef3e8a66ec1f1705fabda4
|
|
# make_check_pre="dbus-run-session xvfb-run"
|
|
make_check=no # test_store_locked_cancel
|
|
|
|
post_patch() {
|
|
# Failing on musl
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i "/subdir.'docs'/d" meson.build
|
|
fi
|
|
}
|
|
|
|
libaccounts-glib-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/share/gir-*"
|
|
vmove usr/share/vala
|
|
if [ ! "$CROSS_BUILD" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
}
|
|
}
|