Commit af22a92f authored by Natanael Copa's avatar Natanael Copa

mkalpine: removed

parent 23719d03
......@@ -7,7 +7,7 @@ sysconfdir ?= /etc
datadir ?= $(prefix)/share/$(PACKAGE)
abuildrepo ?= ~/.cache/apks
SCRIPTS := abuild devbuild mkalpine buildrepo abuild-keygen \
SCRIPTS := abuild devbuild buildrepo abuild-keygen \
abuild-sign newapkbuild
USR_BIN_FILES := $(SCRIPTS) abuild-tar
SAMPLES := sample.APKBUILD sample.initd sample.confd \
......
#!/bin/sh
# check if what we need is here
needed="cramfs syslinux cdrkit"
for i in $needed; do
if ! apk info -e $i; then
missing="$missing $i"
fi
done
# try install the missing parts
if [ -n "$missing" ]; then
if ! sudo apk add $missing; then
echo "Need $missing to build alpine" >&2
exit 1
fi
fi
# first look for alpine.mk in current dir. Fallback to /usr/share/abuild
mk=./alpine.mk
if ! [ -f $mk ]; then
mk=/usr/share/abuild/alpine.mk
fi
make -f "$mk" APK_BIN= $@
rc=$?
# beep when done
if [ $rc -eq 0 ]; then
for i in $(seq 0 3); do
echo -n -e "\007"
sleep 0.2
done
fi
# uninstall the stuff we installed
[ -n "$missing" ] && sudo apk del $missing
exit $?
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment