diff --git a/busybox/PACKAGE b/busybox/PACKAGE index 606994a..e0892ab 100644 --- a/busybox/PACKAGE +++ b/busybox/PACKAGE @@ -7,6 +7,7 @@ pkg_install() { make defconfig make make install CONFIG_PREFIX="$1/usr" + busybox --install } pkg_uninstall() { diff --git a/linux-headers/PACKAGE b/linux-headers/PACKAGE new file mode 100644 index 0000000..329e147 --- /dev/null +++ b/linux-headers/PACKAGE @@ -0,0 +1,24 @@ +#!/bin/sh +pkg_ver="5.13-headers" +pkg_deps="linux-kernel" + +pkg_install(){ + if [ "${pkg_deps}" = `sed -n "/${pkg_deps}/" "${prefix}"/var/cache/spkg.cache` ] + then + #mkdir "${prefix}"/usr/src/linux-headers + #cd linux-headers + #cp "${prefix}"/usr/src/linux-kernel/.config . + #make O="${prefix}"/usr/src/linux-headers oldconfig + #rm .config + #make O="${prefix}"/usr/src/linux-headers modules_prepare + #rm "${prefix}"/usr/src/linux-headers/source + #cp "${prefix}"/usr/src/linux-kernel/Module.symvers "${prefix}"/usr/src/linux-headers + cd "${prefix}"/usr/src/linux-kernel + make mrproper + make headers + find ${prefix}/usr/include -name '.*' -delete + rm ${prefix}/usr/include/Makefile + cp -rv ${prefix}/usr/include $LFS/usr + + fi +} diff --git a/linux-kernel/PACKAGE b/linux-kernel/PACKAGE new file mode 100644 index 0000000..afd407e --- /dev/null +++ b/linux-kernel/PACKAGE @@ -0,0 +1,12 @@ +#!/bin/sh +pkg_ver="5.13" + +pkg_install(){ + wget -O ${prefix}/usr/src/linux-5.13.tar.xz https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.13.tar.xz + tar -xfJ linux-5.13.tar.xz + rm linux-5.13.tar.xz +} +pkg_uninstall(){ + rm -rf ${prefix}/usr/src/linux-5.13 + echo "Linux source dir removed" +} diff --git a/spkg/PACKAGE b/spkg/PACKAGE new file mode 100644 index 0000000..e72ffe3 --- /dev/null +++ b/spkg/PACKAGE @@ -0,0 +1,20 @@ +#!/bin/sh +pkg_ver="21.07.01.21.nr" + +pkg_install(){ + mkdir spkg + cd spkg + wget -O ./spkg https://git.hippoz.xyz/duck/spkg/spkg + rm /bin/spkg + install -Dm755 ./spkg /bin/spkg +} +pkg_uninstall(){ + read -p "Are you sure you want to remove sPKG via wget (Duck Linux's PM). If yes, you are aware that Duck Linux will become Linux from Scratch, continue still?" -n 1 -r + echo "" + if [[ $confirmation =~ ^[Yy]$ ]] + then + rm /bin/spkg + rm /usr/bin/spkg + echo "sPKG via wget removed, g'luck!" + fi +}