mirror of
https://github.com/rworkman/slackpkg
synced 2024-11-15 19:47:54 +01:00
slackpkg.SlackBuild: tweaks to support PRINT_PACKAGE_NAME et al
This commit is contained in:
parent
9c3bd23c8a
commit
90f437c324
1 changed files with 12 additions and 3 deletions
|
@ -20,15 +20,24 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PKGNAM=slackpkg
|
||||
VERSION=${VERSION:-2.83.0beta2}
|
||||
VERSION=${VERSION:-2.83.0}
|
||||
ARCH="noarch"
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp}
|
||||
PKG=$TMP/package-$PKGNAM
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
|
@ -109,5 +118,5 @@ cat $CWD/doinst.sh | sed -e "s/@VERSION@/$VERSION/g" > $PKG/install/doinst.sh
|
|||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-noarch-$BUILD.txz
|
||||
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|
||||
|
||||
|
|
Loading…
Reference in a new issue