source: npl/overig/linuxdoc_tools/arm/build @ ffaaf60

Last change on this file since ffaaf60 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#!/bin/bash
2
3# armel/build
4# Check package dependencies, set metadata and launch
5# package build script.
6# by Stuart Winter <stuart@armedslack.org>
7#
8source /usr/share/slackdev/buildkit.sh
9
10# Package metadata:
11export PKGNAM=linuxdoc-tools
12export VERSION=${VERSION:-0.9.69}
13export PKGARCH=${PKGARCH:-arm}
14export BUILD=${BUILD:-4}
15export PKGSERIES=${PKGSERIES:-ap}
16export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz
17export PKGEXT=${PKGEXT:-txz}
18
19# Ensure base ARM packages are installed first:
20slackbasedeps
21
22# Ensure $PKGNAM isn't already installed:
23slackfailpkgdeps $PKGNAM || removepkg $PKGNAM
24
25# Ensure specific build dependencies - libraries and development tools.
26# There are many more dependencies but these are the core ones I picked out
27# as I was building the software included within this package.
28#
29#slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.t?z
30# to unpack some SRPMs:
31#slackcheckpkgdeps rpm     || installpkg $PKGSTORE/ap/rpm-*.t?z
32# for OpenJade:
33#slackcheckpkgdeps tetex   || installpkg $PKGSTORE/t/tetex-[0-9]*.t?z
34# for AsciiDoc:
35#slackcheckpkgdeps python  || installpkg $PKGSTORE/d/python-[0-9]*.t?z
36# Ensure the packages are installed; exit if not.
37#slackcheckpkgdeps python,libxml2,rpm,tetex || exit 99
38
39# Stop daemons/processes which tend to modify the contents of the filesystem:
40altertrackprep
41
42# Launch the package build script:
43BUILDLOG=$( basename $SLACKPACKAGE .t?z ).build.log
44# ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG
45( ./trackbuild.$PKGNAM ) >& /dev/stdout | tee $BUILDLOG
46
47# Compress the build log:
48bzip2 -9fvz $BUILDLOG
Note: See TracBrowser for help on using the repository browser.