#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) #Anything commented out is optional and can be deleted. pkgname=bash-completion pkgver=1.1 pkgrel=1 zenver=64 arch=i486 sourcetemplate=http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/ source=(http://bash-completion.alioth.debian.org/files/bash-completion-$pkgver.tar.bz2 http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/slapt-get http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/service http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/netpkg http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/bash_completion.sh) docs=(BUGS COPYING README Changelog TODO) url=http://bash-completion.alioth.debian.org slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (programmable completion to the bash shell)" "Adds programmable completion to the bash shell. A new file called" "/etc/bash_completion will be sourced for interactive bash shells" "adding all sorts of enhanced command completion features. Once" "installed, you may get a list of all commands that have associated" "completions with 'complete -p', and examine the code for the shell" "functions with 'declare -f'." "" "bash-completion was written by Ian Macdonald ." ) doinst(){ if [ -f etc/bash_completion.d/installpkg ]; then if [ "$(cat etc/bash_completion.d/installpkg | md5sum | cut -d " " -f1)" = "4b9b22cf4009c37e77fa42394bc7d351" ]; then rm etc/bash_completion.d/installpkg fi fi if [ -f etc/bash_completion.d/removepkg ]; then if [ "$(cat etc/bash_completion.d/removepkg | md5sum | cut -d " " -f1)" = "9a82dcc0309fb48458239d389a279348" ]; then rm etc/bash_completion.d/removepkg fi fi } build() { cd $startdir/src/bash-completion-$pkgver # Relocate files mkdir -p $PKG/etc/bash_completion.d $PKG/etc/profile.d ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/man \ --infodir=/usr/info \ --docdir=/usr/doc/bash-completion-$pkgver make || exit 1 make install DESTDIR=$PKG || exit 1 for file in slapt-get service netpkg; do cp -a $startdir/src/$file $PKG/etc/bash_completion.d done cp -a $startdir/src/bash-completion-$pkgver/bash_completion $PKG/etc cp -a $startdir/src/bash_completion.sh $PKG/etc/profile.d chown root:root $PKG/etc/profile.d/bash_completion.sh sed -e 's|tgz|t[glx]z|g' -i $PKG/etc/bash_completion.d/pkgtools }