wok-current view elfkickers/receipt @ rev 25637
Add miss new packages (Py3Qt-x11-gpl and pycairo118)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 15 22:12:34 2024 +0000 (11 months ago) |
parents | bfabe25c21ff |
children | 5926178cd6fa |
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 }