summaryrefslogtreecommitdiffstats
path: root/main/bash/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2011-07-05 19:40:43 +0200
committerFabian Affolter <fabian@bernewireless.net>2011-07-05 19:40:43 +0200
commit7f9851115264bca9bce3926ddb29e533a23929dd (patch)
treeb0426fc489e4dad582f34b25d6f93354a65f5c0f /main/bash/APKBUILD
parent5dac3f219058736f6e19b7bec2b1cc2b1b300981 (diff)
parent269fc1049583d36e07153215fe535f88947ea98b (diff)
downloadaports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.bz2
aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.xz
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/bash/APKBUILD')
-rw-r--r--main/bash/APKBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/main/bash/APKBUILD b/main/bash/APKBUILD
new file mode 100644
index 000000000..9e74d229d
--- /dev/null
+++ b/main/bash/APKBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+pkgname=bash
+pkgver=4.2.010
+_patchlevel=${pkgver##*.}
+_myver=${pkgver%.*}
+_patchbase=${_myver%.*}${_myver#*.}
+pkgrel=0
+pkgdesc="The GNU Bourne Again shell"
+arch="all"
+license='GPL'
+url="http://www.gnu.org/software/bash/bash.html"
+makedepends="readline-dev ncurses-dev bison flex"
+depends=
+subpackages="$pkgname-doc"
+source="http://ftp.gnu.org/gnu/bash/bash-${_myver}.tar.gz
+ bash-noinfo.patch
+ "
+# generate url's to patches. note: no forks allowed!
+_i=1
+_pad="00"
+while [ $_i -le $_patchlevel ]; do
+ [ $_i -ge 10 ] && _pad="0"
+ [ $_i -ge 100 ] && _pad=
+ source="$source http://ftp.gnu.org/gnu/bash/bash-$_myver-patches/bash$_patchbase-$_pad$_i"
+ _i=$(( $_i + 1))
+done
+
+# run 'abuild _gensrc >> APKBUILD' to generate the patch list
+#_gensrc() {
+# for _i in $(seq 1 $_patchlevel); do
+# # seq -w unsupported by busybox
+# _p=$(printf "%0.3i" $_i)
+# echo -e "\thttp://ftp.gnu.org/gnu/bash/bash-${_myver}-patches/bash${_patchbase}-$_p"
+# done
+#}
+
+_builddir="$srcdir"/$pkgname-$_myver
+prepare() {
+ local p
+ cd "$_builddir"
+ for p in ../bash${_patchbase}-??? ../*.patch; do
+ msg "applying patch ${p##*/}"
+ patch -p0 -i $p || return 1
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --with-curses \
+ --disable-nls \
+ --enable-readline \
+ --without-bash-malloc \
+ --with-installed-readline \
+ --bindir=/bin \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ || return 1
+ make y.tab.c && make || return 1
+}
+
+package() {
+ cd ${startdir}/src/${pkgname}-${_myver}
+ make DESTDIR=${pkgdir} install
+
+ rm -rf "$pkgdir"/usr/share/locale
+}
+md5sums="3fb927c7c33022f1c327f14a81c0d4b0 bash-4.2.tar.gz
+80fec5f3d60a63756a4999c877e31a8e bash-noinfo.patch
+1100bc1dda2cdc06ac44d7e5d17864a3 bash42-001
+30e7948079921d3261efcc6a40722135 bash42-002
+9ea06decec43a198f3d7cf29acc602f8 bash42-003
+fb48f6134d7b013135929476aa0c250c bash42-004
+e70e45de33426b38153b390be0dbbcd4 bash42-005
+ce4e5c484993705b27daa151eca242c2 bash42-006
+88d1f96db29461767602e2546803bda7 bash42-007
+24c574bf6d6a581e300823d9c1276af6 bash42-008
+4c5835f2fbab36c4292bb334977e5b6d bash42-009
+0a51602b535ef661ee707be6c8bdb373 bash42-010"