# SliTaz package receipt.

PACKAGE="ruby-pkgconfig"
VERSION="1.0.7"
CATEGORY="development"
SHORT_DESC="A pkg-config implementation in Ruby."
MAINTAINER="slaxemulator@gmail.com"
SOURCE="pkg-config"
TARBALL="$SOURCE-$VERSION.gem"
WEB_SITE="http://github.com/rcairo/pkg-config"
WGET_URL="http://gems.rubyforge.org/gems/$TARBALL"
COOK_OPT="!repack_src !unpack"

DEPENDS="ruby"
BUILD_DEPENDS="ruby-dev"

# Rules to configure and make the package.
compile_rules()
{
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}