SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "prelink"

# 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
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)