slackbuild allow an extra tag (personal purpose)

doinst does remove CHECKSUMS.md5 instead pkglist
This commit is contained in:
Matteo Rossini 2021-03-08 19:46:23 +01:00
parent 6e015a5f40
commit 623bb03cfd
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ copy_config_file
config etc/slackpkg/slackpkgplus.conf.new
config etc/slackpkg/greylist.new
config etc/slackpkg/notifymsg.conf.new
rm -f var/lib/slackpkg/pkglist
rm -f var/lib/slackpkg/CHECKSUMS.md5*
echo
echo

View file

@ -4,7 +4,7 @@ set -e
TXZ=$(head -2 ChangeLog.txt|cut -f1 -d:|cut -f2 -d/|tail -1)
VERSION=$(echo $TXZ|cut -f2 -d-)
BUILD=$(echo $TXZ|cut -f4 -d-|sed 's/.txz//')
BUILD=$(echo $TXZ|cut -f4 -d-|sed 's/.txz//')$TAG
CWD=`pwd`
TMP=${TMP:-/tmp}
@ -18,7 +18,7 @@ if [ repositories.txt -nt repositories.lst ];then
sleep 5
fi
INST=$(ls /var/log/packages/slackpkg+-$VERSION-noarch-* 2>/dev/null|true)
INST=$(ls /var/log/packages/slackpkg+-$VERSION-noarch-* 2>/dev/null||true)
if [ ! -z "$INST" ];then
BINST=$(echo $INST|sed 's/.*-//')
NBUILD=$(echo $BUILD|egrep -o [0-9])
@ -86,7 +86,7 @@ chmod +x usr/libexec/slackpkg/functions.d/zlookkernel.sh
chmod +x usr/doc/slackpkg+-$VERSION/setupmultilib.sh
makepkg -l y -c y $OUTPUT/$TXZ
makepkg -l y -c y $OUTPUT/slackpkg+-$VERSION-noarch-$BUILD.txz