diff options
author | Alad Wenter | 2016-04-19 14:54:42 +0200 |
---|---|---|
committer | Alad Wenter | 2016-04-19 14:54:42 +0200 |
commit | 538ff3847c9200dd4d79a1fe3c56ee6b4aaef3f6 (patch) | |
tree | a0d6f8976c1c4c14b7005e0a0f3b55c77ef3fe50 | |
parent | 311650f1b5b4fed350cec8c183a2d69d48bc47a2 (diff) | |
download | aur-538ff3847c9200dd4d79a1fe3c56ee6b4aaef3f6.tar.gz |
more in line with official package
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 30 insertions, 21 deletions
@@ -1,58 +1,67 @@ # Maintainer: Carlos Pita <carlosjosepita@gmail.com> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Aaron Griffin <aaron@archlinux.org> pkgname=bash-devel-git -pkgdesc='The GNU Bourne Again shell (Development version)' -pkgver="4.`date +%G%m%d`" +pkgdesc='The GNU Bourne Again shell (development version)' +pkgver=4.0.alpha.r458.gb729dac pkgrel=1 -url='http://savannah.gnu.org/git/?group=bash' +url='http://www.gnu.org/software/bash/bash.html' arch=('i686' 'x86_64') license=('GPL') backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout}) -depends=('readline>=7.0' 'glibc') +depends=('readline>=7' 'glibc' 'ncurses' 'libncursesw.so') optdepends=('bash-completion: for tab completion') -provides=('sh' "bash=$pkgver") +provides=('sh' 'bash=4.4') conflicts=('bash') install=bash.install -source=(dot.bashrc - dot.bash_profile - dot.bash_logout - system.bashrc - system.bash_logout) -md5sums=('027d6bd8f5f6a06b75bb7698cb478089' +source=('git://git.savannah.gnu.org/bash.git#branch=devel' + 'dot.bashrc' + 'dot.bash_profile' + 'dot.bash_logout' + 'system.bashrc' + 'system.bash_logout') +md5sums=('SKIP' + '027d6bd8f5f6a06b75bb7698cb478089' '2902e0fee7a9168f3a4fd2ccd60ff047' '42f4400ed2314bd7519c020d0187edc5' '561949793177116b7be29a07c385ba8b' '472f536d7c9e8250dc4568ec4cfaf294') -build() { - cd "$srcdir" - git clone --depth 1 --branch devel git://git.savannah.gnu.org/bash.git +pkgver() { cd bash - git checkout devel + git describe --long --tags | sed -e 's/bash.//' -e 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd bash _bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/bin\"\' -DSTANDARD_UTILS_PATH=\'\"/usr/bin\"\' -DSYS_BASHRC=\'\"/etc/bash.bashrc\"\' -DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\') export CFLAGS="${CFLAGS} ${_bashconfig[@]}" + ./configure --prefix=/usr --with-curses --enable-readline \ --without-bash-malloc --with-installed-readline make } -package() { - pushd "$srcdir/bash" - make DESTDIR="$pkgdir" install - popd +check() { + make -C bash check +} + +package() { + make -C bash DESTDIR="$pkgdir" install ln -s bash "$pkgdir"/usr/bin/sh + install -dm755 "$pkgdir"/etc/skel # system-wide configuration files - install -dm755 "$pkgdir"/etc/ install -m644 system.bashrc $pkgdir/etc/bash.bashrc install -m644 system.bash_logout "$pkgdir"/etc/bash.bash_logout # user configuration file skeletons - install -dm755 "$pkgdir"/etc/skel/ install -m644 dot.bashrc "$pkgdir"/etc/skel/.bashrc install -m644 dot.bash_profile "$pkgdir"/etc/skel/.bash_profile install -m644 dot.bash_logout "$pkgdir"/etc/skel/.bash_logout |