1
0
Fork 0
frozenports/system/chimerautils/SCHEMATIC

39 lines
1.7 KiB
Bash

#!/bin/sh
name="chimerautils"
short_desc="FreeBSD userspace from Chimera Linux"
desc="chimerautils is the heart of Chimera Linux and Basalt Linux, providing the essential utilities for a system."
category="system"
version="14.0.4"
maintainer="ffqq@danwin1210.de"
www="https://github.com/chimera-linux/chimerautils"
master_site="https://github.com/chimera-linux/chimerautils/archive/refs/tags"
source_name="v$version.tar.gz"
license_logic="single" # accepted values: single, and, or
licenses=("GPLv3")
build_dependencies=("devel/muon" "devel/ninja" "devel/acl" "devel/libedit" "devel/libxo")
run_dependencies=("system/glibc" "devel/libxo")
build_process() {
cd $name-$version || exit 1
PKG_CONFIG_PATH=/usr/lib/pkgconfig muon setup -Dprefix=/usr -Dbc=false build || exit 1
# fix incompatibilities
cp -v src.freebsd/{nvi/gen_extern_h.sh,libfetch/gen_errors.sh} build
cp -v src.freebsd/nvi/gen_ex_version_h.sh .
ninja -C build || exit 1
DESTDIR=$TAMANDUA_STAGE_DIR muon -C build install || exit 1
mkdir -pv $TAMANDUA_STAGE_DIR/bin
ln -sv /usr/bin/sh $TAMANDUA_STAGE_DIR/bin/sh
# find doesn't build properly
rm -v $TAMANDUA_STAGE_DIR/usr/bin/find
# we have xz, bz, zstd from archivers/ in the ports tree, which provide the libraries needed for pkg(8) to build and run.
rm -rv $TAMANDUA_STAGE_DIR/usr/bin/bz*
rm -rv $TAMANDUA_STAGE_DIR/usr/bin/lz*
rm -rv $TAMANDUA_STAGE_DIR/usr/bin/zstd*
rm -rv $TAMANDUA_STAGE_DIR/usr/bin/xz*
rm -rv $TAMANDUA_STAGE_DIR/usr/bin/groups*
rm -rv $TAMANDUA_STAGE_DIR/usr/share/man/man1/xz*
rm -rv $TAMANDUA_STAGE_DIR/usr/share/man/man1/bz*
rm -rv $TAMANDUA_STAGE_DIR/usr/share/man/man1/zstd*
rm -rv $TAMANDUA_STAGE_DIR/usr/share/man/man1/lz*
}