#Packager: Shador <futur~DOT~andy~AT~googlemail.com>

pkgname=ruby-pkg-config
pkgver=1.1.1
pkgrel=1ab
source=("http://rubyforge.org/frs/download.php/74790/pkg-config-1.1.1.tgz")
sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/"
docs=("LGPL-2.1" "Manifest.txt" "NEWS" "README.rdoc")
url='https://github.com/rcairo/pkg-config'

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (a pkg-config implementation for Ruby)"
"A pkg-config implementation for Ruby."
)


build() {
	set -e

	cd $startdir/src/pkg-config-${pkgver}/

	ruby extconf.rb \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/man || return 1
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg || return 1

	set +e
}