#!/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 PACKAGE=openssh export PKGSERIES=n export VERSION=4.4p1 export BUILD=1 export ARCH=arm export SLACKPACKAGE=$PACKAGE-$VERSION-$ARCH-$BUILD.tgz # Ensure base ARM packages are installed first: slackbasedeps # Ensure specific build dependencies (mainly libraries): slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz slackcheckpkgdeps zlib || installpkg $PKGSTORE/l/zlib-*.tgz slackcheckpkgdeps ncurses || installpkg $PKGSTORE/l/ncurses-*.tgz slackcheckpkgdeps tcpip || installpkg $PKGSTORE/n/tcpip-*.tgz slackcheckpkgdeps openssl,zlib,ncurses,tcpip || exit 50 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log