aports/testing/biboumi/APKBUILD
omni b2fe96c0cc testing/biboumi: move from community
Since Botan2 reached End of Life it will not be part of our 3.22
release. Instead of removing it entirely we move it to testing/ until
dependants can catch up and switch to Botan3 or other, therefore we move
this to testing/ for now as well.

The upstream project has also moved, so we update url and source to
reflect that.
2025-05-28 21:33:15 +00:00

58 lines
1.5 KiB
Text

# Contributor: Anjandev Momi <anjan@momi.ca>
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=biboumi
pkgver=9.0
pkgrel=8
pkgdesc="XMPP to IRC gateway"
options="!check" # has no tests
url="https://biboumi.codeberg.page/"
arch="all"
license="Zlib"
pkgusers="biboumi"
pkggroups="biboumi"
makedepends="
botan2-dev
cmake
expat-dev
gnu-libiconv-dev
libidn-dev
libpq-dev
udns-dev
util-linux-dev
samurai
"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/poezio/biboumi/archive/$pkgver.tar.gz
$pkgname.initd
"
builddir="$srcdir/$pkgname"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_BOTAN=True \
-DWITHOUT_SYSTEMD=False \
$CMAKE_CROSSOPTS .
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
install -Dm755 "$srcdir"/biboumi.initd "$pkgdir"/etc/init.d/biboumi
install -Dm644 "$builddir"/conf/biboumi.cfg "$pkgdir"/etc/biboumi/biboumi.cfg.example
rm -rf "$pkgdir"/usr/lib/systemd
}
sha512sums="
608bf9fa1cd886e4db7094174f9afa3ecd7ad49a02da012ddb8fa2ad0ec01e182a83308338f7b49036e2a751268c6585cddf934673a3db8d0c1aaea03575fdad biboumi-9.0.tar.gz
0a7fe41c1455ffc8a9d524795ea3c2591290d8414f3ed51a33dd0548d1acb00a218c5dd451a5705540f754b466097c834ada777db07df892c7347be75d129039 biboumi.initd
"