#!/bin/bash

source /usr/share/slackdev/buildkit.sh

# Package metadata:
export PACKAGE=autoconf2.13
export VERSION=2.13
export BUILD=1
export ARCH=arm
export PKGSERIES=../unsupported-extra/packages
export SLACKPACKAGE=${PACKAGE}-${VERSION}-${ARCH}-${BUILD}.tgz

# Reset the ARM file system: restore it to the 'factory settings'
# as it were:
sboxsysrestore

# Ensure base ARM packages are installed first:
slackbasedeps

# Ensure either version of autoconf isn't already installed.
# (this clashes with slackbasedeps - this will probably be the
# only time I'll ever not want autoconf installed!):
slackfailpkgdeps autoconf     || removepkg autoconf
slackfailpkgdeps autoconf2.13 || removepkg autoconf2.13

# Launch the package build script:
./trackbuild.$PACKAGE
