blob: a4a6410a9c907d99791ddeeabcaf33f57e8e4f96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/bash
# armel/build
# Check package dependencies, set metadata and launch
# package build script.
# by Stuart Winter <stuart@armedslack.org>
#
source /usr/share/slackdev/buildkit.sh
# Package metadata:
export PKGNAM=linuxdoc-tools
export VERSION=${VERSION:-0.9.69}
export PKGARCH=${PKGARCH:-arm}
export BUILD=${BUILD:-4}
export PKGSERIES=${PKGSERIES:-ap}
export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz
export PKGEXT=${PKGEXT:-txz}
# 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.
#
#slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.t?z
# to unpack some SRPMs:
#slackcheckpkgdeps rpm || installpkg $PKGSTORE/ap/rpm-*.t?z
# for OpenJade:
#slackcheckpkgdeps tetex || installpkg $PKGSTORE/t/tetex-[0-9]*.t?z
# for AsciiDoc:
#slackcheckpkgdeps python || installpkg $PKGSTORE/d/python-[0-9]*.t?z
# 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:
BUILDLOG=$( basename $SLACKPACKAGE .t?z ).build.log
# ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG
( ./trackbuild.$PKGNAM ) >& /dev/stdout | tee $BUILDLOG
# Compress the build log:
bzip2 -9fvz $BUILDLOG
|