#!/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.17} 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-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps e2fsprogs || installpkg $PKGSTORE/a/e2fsprogs-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps gpm || installpkg $PKGSTORE/a/gpm-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps aalib || installpkg $PKGSTORE/l/aalib-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps alsa-lib || installpkg $PKGSTORE/l/alsa-lib-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps audiofile || installpkg $PKGSTORE/l/audiofile-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps cairo || installpkg $PKGSTORE/l/cairo-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps djvulibre || installpkg $PKGSTORE/l/djvulibre-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps esound || installpkg $PKGSTORE/l/esound-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps freetype || installpkg $PKGSTORE/l/freetype-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps gtk+2 || installpkg $PKGSTORE/l/gtk+2-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps ilmbase || installpkg $PKGSTORE/l/ilmbase-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps jasper || installpkg $PKGSTORE/l/jasper-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps lcms || installpkg $PKGSTORE/l/lcms-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libcaca || installpkg $PKGSTORE/l/libcaca-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libgsf || installpkg $PKGSTORE/l/libgsf-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libjpeg || installpkg $PKGSTORE/l/libjpeg-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps librsvg || installpkg $PKGSTORE/l/librsvg-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libtheora || installpkg $PKGSTORE/l/libtheora-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libtiff || installpkg $PKGSTORE/l/libtiff-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libvorbis || installpkg $PKGSTORE/l/libvorbis-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps ncurses || installpkg $PKGSTORE/l/ncurses-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps openexr || installpkg $PKGSTORE/l/openexr-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps pango || installpkg $PKGSTORE/l/pango-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps sdl || installpkg $PKGSTORE/l/sdl-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps slang || installpkg $PKGSTORE/l/slang-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps svgalib || installpkg $PKGSTORE/l/svgalib-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps cyrus-sasl || installpkg $PKGSTORE/n/cyrus-sasl-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps openldap-client || installpkg $PKGSTORE/n/openldap-client-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps samba || installpkg $PKGSTORE/n/samba-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps fontconfig || installpkg $PKGSTORE/x/fontconfig-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libICE || installpkg $PKGSTORE/x/libICE-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libSM || installpkg $PKGSTORE/x/libSM-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libX11 || installpkg $PKGSTORE/x/libX11-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXau || installpkg $PKGSTORE/x/libXau-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXdmcp || installpkg $PKGSTORE/x/libXdmcp-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXext || installpkg $PKGSTORE/x/libXext-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXinerama || installpkg $PKGSTORE/x/libXinerama-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXrandr || installpkg $PKGSTORE/x/libXrandr-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXrender || installpkg $PKGSTORE/x/libXrender-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXt || installpkg $PKGSTORE/x/libXt-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXv || installpkg $PKGSTORE/x/libXv-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libXvMC || installpkg $PKGSTORE/x/libXvMC-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps libxcb || installpkg $PKGSTORE/x/libxcb-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps mesa || installpkg $PKGSTORE/x/mesa-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps pixman || installpkg $PKGSTORE/x/pixman-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps imagemagick || installpkg $PKGSTORE/xap/imagemagick-[0-9]*.t?z || 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