aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb')
-rw-r--r--meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb95
1 files changed, 95 insertions, 0 deletions
diff --git a/meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb b/meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb
new file mode 100644
index 0000000..6a898bd
--- /dev/null
+++ b/meta-yerba/recipes-core/chimerautils/chimerautils_15.0.3.bb
@@ -0,0 +1,95 @@
+SUMMARY = "chimerautils - Chimera Linux utilities/userspace"
+DESCRIPTION = "Custom userspace/coreutils for replacing busybox and GNU coreutils"
+HOMEPAGE = "https://github.com/chimera-linux/chimerautils"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba384e96ff42e28d5560af83e8fb18f"
+
+SRC_URI = "git://github.com/chimera-linux/chimerautils;protocol=https;branch=master"
+SRCREV = "159738bb5e46c7b10aad5916bbf9dd848310e46d"
+S = "${WORKDIR}/git"
+
+PROVIDES += "virtual/base-utils"
+RPROVIDES:${PN} += "virtual/base-utils"
+
+DEPENDS = "meson-native ninja-native bison-native acl-native libedit-native openssl-native zlib-native xz-native ncurses-native zstd-native zstd bison acl libedit openssl libxo zlib xz ncurses"
+
+inherit meson
+
+inherit pkgconfig
+
+EXTRA_OEMESON = "--buildtype plain"
+
+do_install() {
+ install -d ${D}${bindir} \
+ ${D}${sbindir} \
+ ${D}${libdir} \
+ ${D}${base_sbindir} \
+ ${D}${base_bindir}
+
+ if [ -d "${B}/src.custom" ]; then
+ for binary in $(find ${B}/src.custom -maxdepth 2 -type f -executable ! -name "*.o" ! -name "*.p" 2>/dev/null); do
+ base_name=$(basename $binary)
+ case $base_name in
+ maketab|mksyntax|mknodes|proctab)
+ continue
+ ;;
+ addpart|delpart|resizepart)
+ install -m 0755 $binary ${D}${sbindir}/
+ ;;
+ pivot_root|switch_root)
+ install -m 0755 $binary ${D}${base_sbindir}/
+ ;;
+ *)
+ install -m 0755 $binary ${D}${bindir}/
+ ;;
+ esac
+ done
+ fi
+
+ if [ -d "${B}/src.freebsd" ]; then
+ for binary in $(find ${B}/src.freebsd -mindepth 2 -maxdepth 3 -type f -executable ! -name "*.o" ! -name "*.a" ! -name "*.so*" ! -name "*.h" ! -name "*.c" ! -name "*.cc" ! -name "*.tab.*" ! -name "*.p" 2>/dev/null); do
+ base_name=$(basename $binary)
+ case $base_name in
+ maketab|mksyntax|mknodes|proctab|*.o|*.a|*.so*|*.h|*.c|*.cc|*.tab.*|*.p|*.sh|*.pl|*.py|*.awk)
+ continue
+ ;;
+ *)
+ case $base_name in
+ init|halt|poweroff|reboot|shutdown|swap*|pivot_root|switch_root)
+ install -m 0755 $binary ${D}${base_sbindir}/
+ ;;
+ mount|umount|fsck|mkfs|fdisk|cfdisk|sfdisk|losetup|addpart|delpart|resizepart)
+ install -m 0755 $binary ${D}${sbindir}/
+ ;;
+ *)
+ install -m 0755 $binary ${D}${bindir}/
+ ;;
+ esac
+ ;;
+ esac
+ done
+ fi
+
+ if [ -d "${B}/src.freebsd" ]; then
+ find ${B}/src.freebsd -name "*.so*" -exec install -m 0755 {} ${D}${libdir}/ \; 2>/dev/null || true
+ fi
+}
+
+FILES:${PN} = " \
+ ${bindir}/* \
+ ${sbindir}/* \
+ ${base_bindir}/* \
+ ${base_sbindir}/* \
+ ${libdir}/*.so* \
+ ${datadir}/* \
+ /bin \
+ /usr/share \
+"
+
+FILES:${PN}-staticdev = " \
+ ${libdir}/*.a \
+"
+
+FILES:${PN}-dev = " \
+ ${includedir}/* \
+"