# .r2b-postbuild example for the Slackware ARM build system # This is to be dropped into a package's source directory to handle # special packages. # # r2b will take care of upgrading the primary "gcc", "glibc" package. # # For local testing outside of r2b: #shopt -s extglob #PKGSTASH=~/tgzstash/ echo "@@@@@ .r2b-postbuild post build script for $PKGNAME @@@@@@" # Example from glibc: #for r2b_postbuildpkglist in \ # a/glibc-solibs \ # l/glibc-i18n \ # l/glibc-profile ; do # # Unnecessary to store these in separate variables, but it might be useful in the future: # r2b_postbuildpkglist_series="${r2b_postbuildpkglist%%/*}" # r2b_postbuildpkglist_pname=${r2b_postbuildpkglist##*/} # echo "@@@@@ Testing for split-out package ${r2b_postbuildpkglist_series}/${r2b_postbuildpkglist_pname} @@@@@" # # local testing # #ls -1 $PKGSTASH/$r2b_postbuildpkglist-+([^-])-+([^-])-+([^-]).t?z # # if [ $PKGSTASH/$r2b_postbuildpkglist-+([^-])-+([^-])-+([^-]).t?z -ot $PKGSTASHTESTFILE ]; then # echo "@@@@@ ERROR: $PKGSTASH/$r2b_postbuildpkglist either is empty or is not fresh" # echo "@@@@@ Looks like a failed build" # OVERRIDE_PKGBUILDEXITVAL=1 # Override the exit value, should the primary package _have_ succeeded # else # # Upgrade it: # upgradepkg --install-new --reinstall $PKGSTASH/$r2b_postbuildpkglist-+([^-])-+([^-])-+([^-]).t?z # fi #done