#!/bin/bash

source /usr/share/slackdev/buildkit.sh

# Package metadata:
export PACKAGE=nano
export PKGSERIES=/
export PKGSTORE=/tmp
export VERSION=2.0.2
export BUILD=1
export ARCH=i486
export SLACKPACKAGE=$PACKAGE-$VERSION-$ARCH-$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 build dependencies:
#slackcheckpkgdeps ncurses     || installpkg $PKGSTORE/l/ncurses-*.tgz
#slackcheckpkgdeps gpm         || installpkg $PKGSTORE/a/gpm-*.tgz
#slackcheckpkgdeps ncurses,gpm || exit 99

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

