milis/talimatname/genel/bash-completion/talimat

34 lines
787 B
Plaintext
Raw Normal View History

2016-02-24 01:27:23 +01:00
# Description: Bash completion functions
# URL: http://bash-completion.alioth.debian.org/
2016-07-11 19:45:51 +02:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
# Depends on:
name=bash-completion
version=2.1
2016-07-11 19:45:51 +02:00
release=1
2016-02-24 01:27:23 +01:00
source=(https://launchpad.net/$name/master/$version/+download/$name-$version.tar.gz)
build() {
cd $name-$version
sed -i Makefile.* \
-e 's|pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|g' \
-e 's|profiledir = .*|profiledir = /etc|g'
./configure --prefix=/usr --sysconfdir=/etc
make
make DESTDIR=$PKG install
mv $PKG/etc/bash_completion{.sh,}
chmod 0755 $PKG/usr/share/$name/bash_completion
# files allready installed
for FILE in cal dmesg eject hexdump hwclock ionice look renice rtcwake
do
rm $PKG/usr/share/bash-completion/completions/$FILE
done
}