From 8385713df974239b7cf5395873b4ad459953fa5e Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Fri, 18 Dec 2009 20:40:49 +0059 Subject: first draft Signed-off-by: Thorsten Glaser --- package/bash/Makefile | 2 +- package/pkgmaker | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 package/pkgmaker (limited to 'package') diff --git a/package/bash/Makefile b/package/bash/Makefile index 838bb92e4..531ff7f82 100644 --- a/package/bash/Makefile +++ b/package/bash/Makefile @@ -9,7 +9,7 @@ PKG_RELEASE:= 1 PKG_MD5SUM:= a90a1b5a6db4838483f05438e05e8eb9 PKG_DESCR:= Bourne-Again SHell PKG_SECTION:= shells -PKG_URL:= http://www.gnu.org/software/bash +PKG_URL:= http://www.gnu.org/software/bash/ PKG_SITES:= http://ftp.gnu.org/gnu/bash/ include $(TOPDIR)/mk/package.mk diff --git a/package/pkgmaker b/package/pkgmaker new file mode 100644 index 000000000..5cc957ff9 --- /dev/null +++ b/package/pkgmaker @@ -0,0 +1,29 @@ +export TOPDIR=$(realpath ..) +if gmake --help >/dev/null 2>&1; then + export GMAKE=gmake +else + export GMAKE=make +fi + +for subdir in bash; do + cd $subdir + pn=$($GMAKE show=PKG_NAME) + typeset -u pnu=$pn + pd=$($GMAKE show=PKG_DESCR) + ph=$($GMAKE show=PKG_URL) + (print "config ADK_PACKAGE_$pnu" + pnf=$pn + while (( ${#pnf} < 34 )); do + pnf=$pnf. + done + print "\tprompt \"$pnf ${pd:-$pn}\"" + print \\ttristate + print \\tdefault n + if [[ -n $pd$ph ]]; then + print \\thelp + [[ -n $pd ]] && print "\t $pd" + [[ -n $pd && -n $ph ]] && print '\t ' + [[ -n $ph ]] && print "\t $ph" + fi + ) >Config.in +done -- cgit v1.2.3