* add libdex

This commit is contained in:
Alexander Baldeck 2023-12-02 19:51:21 +01:00
parent c1dbc4cc4f
commit 41dab51f3d
2 changed files with 97 additions and 0 deletions

25
libdex/.SRCINFO Normal file
View File

@ -0,0 +1,25 @@
pkgbase = libdex
pkgdesc = A library supporting 'Deferred Execution'
pkgver = 0.4.1
pkgrel = 1
url = https://gitlab.gnome.org/GNOME/libdex
arch = x86_64
license = LGPL
makedepends = gi-docgen
makedepends = git
makedepends = gobject-introspection
makedepends = libsoup3
makedepends = libsysprof-capture
makedepends = meson
makedepends = vala
depends = glib2
depends = liburing
source = git+https://gitlab.gnome.org/GNOME/libdex.git#commit=51f86a440d5b30b428a768f0997587cdf5462cf3
b2sums = SKIP
pkgname = libdex
provides = libdex-1.so
pkgname = libdex-docs
pkgdesc = A library supporting 'Deferred Execution' (documentation)
depends =

72
libdex/PKGBUILD Normal file
View File

@ -0,0 +1,72 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Fabian Bornschein <fabiscafe-at-mailbox-dot-org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=libdex
pkgname=(
libdex
libdex-docs
)
pkgver=0.4.1
pkgrel=1
pkgdesc="A library supporting 'Deferred Execution'"
url="https://gitlab.gnome.org/GNOME/libdex"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(LGPL)
depends=(
glib2
liburing
)
makedepends=(
gi-docgen
git
gobject-introspection
libsoup3
libsysprof-capture
meson
vala
)
_commit=51f86a440d5b30b428a768f0997587cdf5462cf3 # tags/0.4.1^0
source=("git+$url.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd libdex
git describe --tags | sed -r 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd libdex
}
build() {
local meson_options=(
-D docs=true
-D sysprof=true
)
arch-meson libdex build "${meson_options[@]}"
meson compile -C build
}
check() (
meson test -C build --print-errorlogs
)
package_libdex() {
provides=(libdex-1.so)
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_libdex-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: