#!/bin/bash # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=xine-lib export VERSION=${VERSION:-1.1.16.3} export PKGARCH=${PKGARCH:-arm} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-xap} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Reset the ARM file system: restore it to the 'factory settings' # as it were (this has no effect when building natively): sboxsysrestore # Ensure base ARM packages are installed first: slackbasedeps # Ensure $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Ensure specific build dependencies (mainly libraries): { slackcheckpkgdeps bzip2 || installpkg $PKGSTORE/a/bzip2-*.tgz || exit 99 ; } { slackcheckpkgdeps gpm || installpkg $PKGSTORE/a/gpm-*.tgz || exit 99 ; } { slackcheckpkgdeps aalib || installpkg $PKGSTORE/l/aalib-*.tgz || exit 99 ; } { slackcheckpkgdeps alsa-lib || installpkg $PKGSTORE/l/alsa-lib-*.tgz || exit 99 ; } { slackcheckpkgdeps arts || installpkg $PKGSTORE/l/arts-*.tgz || exit 99 ; } { slackcheckpkgdeps audiofile || installpkg $PKGSTORE/l/audiofile-*.tgz || exit 99 ; } { slackcheckpkgdeps esound || installpkg $PKGSTORE/l/esound-*.tgz || exit 99 ; } { slackcheckpkgdeps freetype || installpkg $PKGSTORE/l/freetype-*.tgz || exit 99 ; } { slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-*.tgz || exit 99 ; } { slackcheckpkgdeps gtk+2 || installpkg $PKGSTORE/l/gtk+2-*.tgz || exit 99 ; } { slackcheckpkgdeps lcms || installpkg $PKGSTORE/l/lcms-*.tgz || exit 99 ; } { slackcheckpkgdeps libcaca || installpkg $PKGSTORE/l/libcaca-*.tgz || exit 99 ; } { slackcheckpkgdeps libjpeg || installpkg $PKGSTORE/l/libjpeg-*.tgz || exit 99 ; } { slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-*.tgz || exit 99 ; } { slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-*.tgz || exit 99 ; } { slackcheckpkgdeps libtheora || installpkg $PKGSTORE/l/libtheora-*.tgz || exit 99 ; } { slackcheckpkgdeps libtiff || installpkg $PKGSTORE/l/libtiff-*.tgz || exit 99 ; } { slackcheckpkgdeps libvorbis || installpkg $PKGSTORE/l/libvorbis-*.tgz || exit 99 ; } { slackcheckpkgdeps sdl || installpkg $PKGSTORE/l/sdl-*.tgz || exit 99 ; } { slackcheckpkgdeps slang || installpkg $PKGSTORE/l/slang-*.tgz || exit 99 ; } { slackcheckpkgdeps slang1 || installpkg $PKGSTORE/l/slang1-*.tgz || exit 99 ; } { slackcheckpkgdeps svgalib || installpkg $PKGSTORE/l/svgalib-*.tgz || exit 99 ; } { slackcheckpkgdeps cyrus-sasl || installpkg $PKGSTORE/n/cyrus-sasl-*.tgz || exit 99 ; } { slackcheckpkgdeps openldap-client || installpkg $PKGSTORE/n/openldap-client-*.tgz || exit 99 ; } { slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz || exit 99 ; } { slackcheckpkgdeps samba || installpkg $PKGSTORE/n/samba-*.tgz || exit 99 ; } { slackcheckpkgdeps libICE || installpkg $PKGSTORE/x/libICE-*.tgz || exit 99 ; } { slackcheckpkgdeps libSM || installpkg $PKGSTORE/x/libSM-*.tgz || exit 99 ; } { slackcheckpkgdeps libX11 || installpkg $PKGSTORE/x/libX11-*.tgz || exit 99 ; } { slackcheckpkgdeps libXext || installpkg $PKGSTORE/x/libXext-*.tgz || exit 99 ; } { slackcheckpkgdeps libXinerama || installpkg $PKGSTORE/x/libXinerama-*.tgz || exit 99 ; } { slackcheckpkgdeps libXrandr || installpkg $PKGSTORE/x/libXrandr-*.tgz || exit 99 ; } { slackcheckpkgdeps libXrender || installpkg $PKGSTORE/x/libXrender-*.tgz || exit 99 ; } { slackcheckpkgdeps libXt || installpkg $PKGSTORE/x/libXt-*.tgz || exit 99 ; } { slackcheckpkgdeps libXv || installpkg $PKGSTORE/x/libXv-*.tgz || exit 99 ; } { slackcheckpkgdeps libXvMC || installpkg $PKGSTORE/x/libXvMC-*.tgz || exit 99 ; } { slackcheckpkgdeps libXxf86vm || installpkg $PKGSTORE/x/libXxf86vm-*.tgz || exit 99 ; } { slackcheckpkgdeps libxcb || installpkg $PKGSTORE/x/libxcb-*.tgz || exit 99 ; } { slackcheckpkgdeps mesa || installpkg $PKGSTORE/x/mesa-*.tgz || exit 99 ; } { slackcheckpkgdeps imagemagick || installpkg $PKGSTORE/xap/imagemagick-*.tgz || exit 99 ; } # Launch the package build script: BUILDLOG=$( basename $SLACKPACKAGE .tgz ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9f $BUILDLOG