--- ../../../arch/base/bash/PKGBUILD 2006-11-13 01:36:36.000000000 +0000 +++ PKGBUILD 2007-04-08 21:06:11.000000000 +0100 @@ -6,6 +6,7 @@ pkgdesc="The GNU Bourne Again shell" arch=(i686 x86_64) url="http://www.gnu.org/software/bash/bash.html" +license=('GPL') backup=(etc/profile) depends=('glibc' 'readline>=5.2') source=(ftp://ftp.cwru.edu/pub/bash/bash-3.2.tar.gz @@ -18,21 +19,22 @@ 'f2a3cf51e58f9b82af50b861191d96fd' '9d301aa965c0e8be9d74298085f0905d') build() { - cd ${startdir}/src/${pkgname}-3.2 + cd "${startdir}"/src/${pkgname}-3.2 for p in 001 002 003 004 005; do echo ${p} patch -Np2 -i ../bash32-${p} || return 1 done patch -Np1 -i ../bash-noinfo.patch || return 1 ./configure --prefix=/usr --with-curses --enable-readline \ - --without-bash-malloc --with-installed-readline + --without-bash-malloc --with-installed-readline \ + --bindir=/bin make || return 1 - make DESTDIR=${startdir}/pkg install - mv ${startdir}/pkg/usr/bin ${startdir}/pkg/bin + make DESTDIR="${startdir}"/pkg install + + cd "$startdir"/pkg # we don't want bashbug - rm -f ${startdir}/pkg/bin/bashbug - rm -f ${startdir}/pkg/usr/man/man1/bashbug.1 - mkdir -p ${startdir}/pkg/etc - install -m644 ../profile ${startdir}/pkg/etc/profile - ln -sf ${pkgname} ${startdir}/pkg/bin/sh + rm -v bin/bashbug usr/man/man1/bashbug.1 + + install -v -D -m644 "$startdir"/src/profile etc/profile + ln -sv bash bin/sh }