diff --git a/core/scratchpkg/repo b/core/scratchpkg/repo new file mode 100644 index 000000000..8b0bd7279 --- /dev/null +++ b/core/scratchpkg/repo @@ -0,0 +1,16 @@ +# +# /etc/scratchpkg.repo : scratchpkg repo file +# +# format: +# +# + +/usr/ports/core https://raw.githubusercontent.com/venomlinux/ports/master/core +/usr/ports/xorg https://raw.githubusercontent.com/venomlinux/ports/master/xorg +/usr/ports/extra https://raw.githubusercontent.com/venomlinux/ports/master/extra +/usr/ports/xfce4 https://raw.githubusercontent.com/venomlinux/ports/master/xfce4 +/usr/ports/kf5 https://raw.githubusercontent.com/venomlinux/ports/master/kf5 +/usr/ports/mate https://raw.githubusercontent.com/venomlinux/ports/master/mate +/usr/ports/lxde https://raw.githubusercontent.com/venomlinux/ports/master/lxde +/usr/ports/git https://raw.githubusercontent.com/venomlinux/ports/master/git +/usr/ports/multilib https://raw.githubusercontent.com/venomlinux/ports/master/multilib diff --git a/core/scratchpkg/spkgbuild b/core/scratchpkg/spkgbuild new file mode 100644 index 000000000..a26cfa66d --- /dev/null +++ b/core/scratchpkg/spkgbuild @@ -0,0 +1,24 @@ +# description : A simple package manager for Linux From Scratch +# backup : etc/scratchpkg.conf etc/scratchpkg.repo etc/revdep.conf +# depends : coreutils bash wget httpup libarchive + +name=scratchpkg +version=20190426 +release=1 +_commit=5cb072aaf1800f9e354cb97a015d432c66df6401 +source=($name-$_commit.tar.gz::https://github.com/venomlinux/scratchpkg/archive/$_commit.tar.gz + repo) +md5sum=(fe6ef86328a6fe0122fe4f7916afcfb5 + 28358c8e8408daed2faaa5ae2869a92f) + +build() { + cd $name-$_commit + DESTDIR=$PKG ./INSTALL.sh + if [ -f /etc/lsb-release ]; then + . /etc/lsb-release + if [ "$DISTRIB_RELEASE" != "Rolling" ]; then + sed -i "s:master:$DISTRIB_RELEASE:g" $SRC/repo + fi + fi + install -m644 $SRC/repo $PKG/etc/scratchpkg.repo +}