2009-08-26 17:00:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-04-16 00:28:37 +02:00
|
|
|
# arm/build
|
|
|
|
# Build wrapper for ap/linuxdoc-tools on Slackware ARM
|
|
|
|
# Stuart Winter <mozes@slackware.com>
|
2009-08-26 17:00:38 +02:00
|
|
|
#
|
|
|
|
source /usr/share/slackdev/buildkit.sh
|
|
|
|
|
|
|
|
# Package metadata:
|
|
|
|
export PKGNAM=linuxdoc-tools
|
2024-04-16 00:28:37 +02:00
|
|
|
export VERSION=${VERSION:-0.9.83}
|
2019-02-06 01:29:25 +01:00
|
|
|
export BUILD=${BUILD:-1}
|
2009-08-26 17:00:38 +02:00
|
|
|
export PKGSERIES=${PKGSERIES:-ap}
|
2016-06-30 22:26:57 +02:00
|
|
|
export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz
|
|
|
|
export PKGEXT=${PKGEXT:-txz}
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Ensure base ARM packages are installed first:
|
|
|
|
slackbasedeps
|
|
|
|
|
|
|
|
# Ensure $PKGNAM isn't already installed:
|
|
|
|
slackfailpkgdeps $PKGNAM || removepkg $PKGNAM
|
|
|
|
|
|
|
|
# Ensure specific build dependencies - libraries and development tools.
|
|
|
|
# There are many more dependencies but these are the core ones I picked out
|
|
|
|
# as I was building the software included within this package.
|
|
|
|
#
|
2016-06-30 22:26:57 +02:00
|
|
|
#slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.t?z
|
2009-08-26 17:00:38 +02:00
|
|
|
# to unpack some SRPMs:
|
2016-06-30 22:26:57 +02:00
|
|
|
#slackcheckpkgdeps rpm || installpkg $PKGSTORE/ap/rpm-*.t?z
|
2009-08-26 17:00:38 +02:00
|
|
|
# for OpenJade:
|
2016-06-30 22:26:57 +02:00
|
|
|
#slackcheckpkgdeps tetex || installpkg $PKGSTORE/t/tetex-[0-9]*.t?z
|
2009-08-26 17:00:38 +02:00
|
|
|
# for AsciiDoc:
|
2016-06-30 22:26:57 +02:00
|
|
|
#slackcheckpkgdeps python || installpkg $PKGSTORE/d/python-[0-9]*.t?z
|
2009-08-26 17:00:38 +02:00
|
|
|
# Ensure the packages are installed; exit if not.
|
|
|
|
#slackcheckpkgdeps python,libxml2,rpm,tetex || exit 99
|
|
|
|
|
|
|
|
# Stop daemons/processes which tend to modify the contents of the filesystem:
|
|
|
|
altertrackprep
|
|
|
|
|
|
|
|
# Launch the package build script:
|
2016-06-30 22:26:57 +02:00
|
|
|
BUILDLOG=$( basename $SLACKPACKAGE .t?z ).build.log
|
2009-08-26 17:00:38 +02:00
|
|
|
# ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG
|
|
|
|
( ./trackbuild.$PKGNAM ) >& /dev/stdout | tee $BUILDLOG
|
|
|
|
|
|
|
|
# Compress the build log:
|
2011-04-25 15:37:00 +02:00
|
|
|
bzip2 -9fvz $BUILDLOG
|