wok-6.x view chrpath/receipt @ rev 25563
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri May 05 18:12:18 2023 +0200 (18 months ago) |
parents | b78e79c31b1f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="chrpath"
4 VERSION="0.16"
5 CATEGORY="misc"
6 SHORT_DESC="Change or delete the rpath or runpath in ELF files"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://packages.debian.org/chrpath"
11 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
12 WGET_URL="http://ftp.debian.org/debian/pool/main/c/$PACKAGE/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
18 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|/doc|/share/doc|' Makefile*
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }