scratchpkg 20190426-1

This commit is contained in:
emmett1
2019-04-26 16:20:56 +08:00
parent 7242e1bdbc
commit ff22bc9716
2 changed files with 40 additions and 0 deletions

16
core/scratchpkg/repo Normal file
View File

@@ -0,0 +1,16 @@
#
# /etc/scratchpkg.repo : scratchpkg repo file
#
# format:
# <repo directory> <repo url for sync>
#
/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

24
core/scratchpkg/spkgbuild Normal file
View File

@@ -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
}