Fixed installpkg script in base/pkgtools to reflect new package build filenames
This commit is contained in:
parent
5cb6e07b32
commit
e2bf3407cc
3 changed files with 32 additions and 2 deletions
|
@ -62,6 +62,7 @@ tar
|
|||
sysklogd
|
||||
gawk
|
||||
sed
|
||||
pkgtools
|
||||
zip
|
||||
unzip
|
||||
popt
|
||||
|
|
|
@ -141,8 +141,8 @@ for package in $* ; do
|
|||
mkdir -p $TMP/scan$$
|
||||
( cd $TMP/scan$$ ; $packagecompression -dc | $TAR xf - install ) < $package 2> /dev/null
|
||||
( cd $TMP/scan$$ ; $packagecompression -dc | $TAR xf - usr/share ) < $package 2> /dev/null
|
||||
if [ "$( find $TMP/scan$$/usr/share -name "$packagebase.SMBuild" | wc -l)" == "1" ] ; then
|
||||
source "$( find $TMP/scan$$/usr/share -name "$packagebase.SMBuild" )"
|
||||
if [ "$( find $TMP/scan$$/usr/share -name "smbuild" | wc -l)" == "1" ] ; then
|
||||
source "$( find $TMP/scan$$/usr/share -name "smbuild" )"
|
||||
# The build file contains the $DESC variable. We use that as our description
|
||||
DESCRIPTION="$(echo $desc)"
|
||||
# Set a custom variable once we source the application build file
|
||||
|
|
29
base/pkgtools/smbuild
Executable file
29
base/pkgtools/smbuild
Executable file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=pkgtools
|
||||
version=14.2
|
||||
build=3sml
|
||||
homepage="https://slackware.uk/slackware/slackware-14.2/source/a/pkgtools/"
|
||||
download="https://slackware.uk/slackware/slackware-14.2/source/a/pkgtools/"
|
||||
desc="The Slackware package maintenance system, modified for SMLinux"
|
||||
requires="tar grep gawk sed bash util-linux coreutils"
|
||||
|
||||
prepbuilddir() {
|
||||
ARCH=noarch
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
}
|
||||
|
||||
build() {
|
||||
# Install Slackware script manpages:
|
||||
mkdir -p $pkg/usr/bin $pkg/usr/share/man/man8
|
||||
cp $srcdir/manpages/* $pkg/usr/share/man/man8/
|
||||
cp $srcdir/scripts/* $pkg/usr/bin/
|
||||
|
||||
chown root:root $pkg/usr/bin/*
|
||||
chmod 755 $pkg/usr/bin/*
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
"
|
Loading…
Reference in a new issue