wok annotate elfkickers/receipt @ rev 25393

updated util-linux packages (2.35.1 -> 2.38)
author Hans-G?nter Theisgen
date Mon Aug 01 16:38:43 2022 +0100 (2022-08-01)
parents bfabe25c21ff
children
rev   line source
pascal@9484 1 # SliTaz package receipt.
pascal@9484 2
pascal@9484 3 PACKAGE="elfkickers"
Hans-G?nter@24513 4 VERSION="3.2"
pascal@9484 5 CATEGORY="system-tools"
pascal@9484 6 SHORT_DESC="Misc ELF linker format tools."
pascal@9484 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
Hans-G?nter@24513 9 WEB_SITE="https://www.muppetlabs.com/~breadbox/software/elfkickers.html"
Hans-G?nter@24513 10
Hans-G?nter@24513 11 SOURCE="ELFkickers"
pascal@9484 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@24513 13 WGET_URL="https://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
pascal@9484 14
pascal@24439 15 # What is the latest version available today?
pascal@24439 16 current_version()
pascal@24439 17 {
pascal@24439 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 19 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24439 20 }
pascal@24439 21
pascal@9484 22 # Rules to configure and make the package.
pascal@9484 23 compile_rules()
pascal@9484 24 {
Hans-G?nter@24513 25 sed -i 's|.*asm/elf.h.*|#define ELF_DATA ELFDATA2LSB\n#define ELF_CLASS ELFCLASS32\n#define ELF_ARCH EM_386|' \
Hans-G?nter@24513 26 sstrip/sstrip.c
pascal@9484 27 mkdir -p $DESTDIR/usr/bin
Hans-G?nter@24513 28 for i in elfls rebind elftoc sstrip
Hans-G?nter@24513 29 do
pascal@9484 30 cd $i
Hans-G?nter@24513 31 make &&
Hans-G?nter@24513 32 cp $i $DESTDIR/usr/bin
pascal@9484 33 cd ..
Hans-G?nter@24513 34 done
pascal@9484 35 }
pascal@9484 36
pascal@9484 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@9484 38 genpkg_rules()
pascal@9484 39 {
Hans-G?nter@24513 40 cp -a $install/* $fs
pascal@9484 41 }