wok view elfutils/receipt @ rev 25590

liberation-fonts-base (2.1.5), fedorahosted.org retirement
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 17 18:59:24 2023 +0000 (11 months ago)
parents 7e911016a644
children
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.161"
5 CATEGORY="development"
6 SHORT_DESC="ELF object file access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://sourceware.org/elfutils/"
11 WGET_URL="https://sourceware.org/elfutils/ftp/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
17 # Handle multiarch compilation
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
20 esac
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 sed '/elfutils-devel.2/!d;s|.*">||;s|<.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 CFLAGS="$CFLAGS -Wno-error"
33 ./configure \
34 --enable-thread-safety \
35 $CONFIGURE_ARGS &&
36 touch src/.deps/none_ld.Po &&
37 make -s && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/bin
44 for i in elfcmp findtextrel unstrip; do
45 cp -a $install/usr/bin/$i $fs/usr/bin
46 done
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/elfutils $fs/usr/lib
49 }