# SliTaz package receipt. PACKAGE="ruby-pkgconfig" VERSION="1.3.8" CATEGORY="development" SHORT_DESC="A pkg-config implementation in Ruby." MAINTAINER="slaxemulator@gmail.com" LICENSE="LGPL2.1" WEB_SITE="https://github.com/ruby-gnome/pkg-config" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}/archive/$VERSION.tar.gz" COOK_OPT="!repack_src !unpack" DEPENDS="ruby" BUILD_DEPENDS="ruby-dev rubygems cacerts" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')" gem install \ --ignore-dependencies \ -i "$DESTDIR/$_gemdir" \ pkg-config } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }