# SliTaz package receipt. PACKAGE="prelink" VERSION="20130503" CATEGORY="system-tools" SHORT_DESC="ELF prelinking utility to speed up dynamic linking" MAINTAINER="devl547@gmail.com" LICENSE="GPL" WEB_SITE="https://people.redhat.com/jakub/prelink/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://people.redhat.com/jakub/$PACKAGE/$TARBALL" DEPENDS="elfutils" BUILD_DEPENDS="elfutils-dev pkg-config" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/prm/d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i486|' testsuite/Makefile* config* sed -i 's/^LIBS.*/& -lpthread/' src/Makefile* ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }