#!/bin/bash # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # Information about this package: export PKGNAM=libburn export VERSION=${VERSION:-1.5.6} export BUILD=${BUILD:-1} slack_var_pkgseries # Defaults are taken from the slackkit package: #export PKGARCH=${PKGARCH:-arm} #export PKGARCH=${PKGARCH:-noarch} #export PKGARCH=${PKGARCH:-fw} #export PKGARCH=$( slack_archtype ) #export BUILD=${BUILD:-1_slack15.0} #export PKGSERIES=${PKGSERIES:-patches} #export PKGSERIES=${PKGSERIES:-../pasture} #export PKGSERIES=${PKGSERIES:-../extra} #export PKGSERIES=${PKGSERIES:-l} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz # If building in /patches for a Stable Release, we drop the packages into /tmp/patches/ slack_findpkgstore_is_stablerelease && { export PKGSTORE=/tmp/ export PKGSERIES=/patches/ mkdir -vpm755 $PKGSTORE/$PKGSERIES ;} # 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 acl || installpkg $PKGSTORE/a/acl-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps elogind || installpkg $PKGSTORE/a/elogind-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps pam || installpkg $PKGSTORE/a/pam-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps xz || installpkg $PKGSTORE/a/xz-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps QtAV || installpkg $PKGSTORE/l/QtAV-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps atk || installpkg $PKGSTORE/l/atk-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps boost || installpkg $PKGSTORE/l/boost-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps cairo || installpkg $PKGSTORE/l/cairo-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps cfitsio || installpkg $PKGSTORE/l/cfitsio-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps cryfs || installpkg $PKGSTORE/l/cryfs-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps cryptopp || installpkg $PKGSTORE/l/cryptopp-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps ffmpeg || installpkg $PKGSTORE/l/ffmpeg-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps freetype || installpkg $PKGSTORE/l/freetype-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps fribidi || installpkg $PKGSTORE/l/fribidi-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps fuse || installpkg $PKGSTORE/l/fuse-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps gdk-pixbuf2 || installpkg $PKGSTORE/l/gdk-pixbuf2-[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 gtk+3 || installpkg $PKGSTORE/l/gtk+3-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps harfbuzz || installpkg $PKGSTORE/l/harfbuzz-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps imagemagick || installpkg $PKGSTORE/l/imagemagick-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps kdsoap || installpkg $PKGSTORE/l/kdsoap-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libappindicator || installpkg $PKGSTORE/l/libappindicator-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libcap || installpkg $PKGSTORE/l/libcap-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libdbusmenu || installpkg $PKGSTORE/l/libdbusmenu-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libdvdread || installpkg $PKGSTORE/l/libdvdread-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libindicator || installpkg $PKGSTORE/l/libindicator-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps openal-soft || installpkg $PKGSTORE/l/openal-soft-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps pango || installpkg $PKGSTORE/l/pango-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps pipewire || installpkg $PKGSTORE/l/pipewire-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps polkit || installpkg $PKGSTORE/l/polkit-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps pulseaudio || installpkg $PKGSTORE/l/pulseaudio-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps qt5 || installpkg $PKGSTORE/l/qt5-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps curl || installpkg $PKGSTORE/n/curl-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps fontconfig || installpkg $PKGSTORE/x/fontconfig-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libX11 || installpkg $PKGSTORE/x/libX11-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXext || installpkg $PKGSTORE/x/libXext-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXv || installpkg $PKGSTORE/x/libXv-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libglvnd || installpkg $PKGSTORE/x/libglvnd-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libva || installpkg $PKGSTORE/x/libva-[0-9]*.t?z || exit 99; } # Launch the package build script: BUILDLOG=$SLKPORTARCH-$( basename $SLACKPACKAGE .t?z ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9fvz $BUILDLOG