Compare commits

...

2 Commits

Author SHA1 Message Date
56a25f0fdb new tests: test/hello-1.0-r1 2026-01-17 18:53:11 -05:00
370ff89030 new blfs: dev-libs/libxmlb-0.3.24 2026-01-17 18:52:50 -05:00
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
pkgname=libxmlb
pkgver=0.3.24
pkgdesc="Library to help create and query binary XML blobs"
homepage="https://github.com/hughsie/libxmlb"
license=("LGPL-2.1+")
depends=(glib:2 xz-utils zstd)
bdepends=(meson)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/hughsie/libxmlb/archive/${pkgver}.tar.gz")
sha512sums=("534e5fe01727b9427137c51984c9ddced91b842c712d4f34f582193c838429b396be6e444246b324d39f6732fdf582a7d89570049f4f48d4a161aff82e33aa49")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_args=(
--prefix=/usr
--buildtype=release
--wrap-mode=nodownload
-D python.bytecompile=1
-D lzma=enabled
-D zstd=enabled
-D gtkdoc=false
-D introspection=false
-D stemmer=false
-D tests=true
)
meson setup build "${meson_args[@]}"
meson compile -C build
}
src_check() {
meson test -C build --print-errorlogs
}
src_install() {
meson install -C build --destdir "$pkgdir"
rm -rf "${pkgdir}"/usr/{libexec,share}/installed-tests
}
# vim:ft=sh syn=sh et sw=2:

View File

@@ -0,0 +1,25 @@
pkgname="hello"
pkgver="1.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="Just a hello world"
license=("GPL")
sourses=()
urls=()
md5sums=()
src_prepare() {
cat > "hello.c" << "EOF"
#include <stdio.h>
int main(){
printf("Hello! LFS!\n");
}
EOF
}
src_build() {
cc ${CFLAGS} hello.c -o hello
}
src_install() {
install -Dm755 hello ${pkgdir}/usr/bin/hello
}