#Packager: Frédéric Galusik <fredg~at~salixos~dot~org>

pkgname=bti
pkgver=029
pkgrel=1fg
#arch=noarch
source=(http://www.kernel.org/pub/software/web/bti/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver
docs=("readme" "REALEASE-NOTES" "copying" "changelog" "bti.example")
url=http://gregkh.github.com/bti/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"bti (twitter/identi.ca console client)"
"bti is a bash twitter/identi.ca ididocy."
"It allows you to pipe your bash input to twitter or identi.ca in an"
"easy and fast manner to annoy the whole world."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
        --libdir=/usr/lib${LIBDIRSUFFIX} \
		--mandir=/usr/man \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
	install -D -m 644 bti-bashcompletion \
		$startdir/pkg/etc/bash_completion.d/bti
}