wok-6.x view elfkickers/receipt @ rev 25459

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