wok-6.x view genromfs/receipt @ rev 25461

foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 09:44:06 2022 +0000 (2022-09-28)
parents 7dd01dedad38
children
line source
1 # SliTaz package receipt.
3 PACKAGE="genromfs"
4 VERSION="0.5.7"
5 CATEGORY="base-system"
6 SHORT_DESC="Romfs creation tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://romfs.sourceforge.net/"
11 WGET_URL="https://github.com/chexum/$PACKAGE/archive/$VERSION.tar.gz"
13 DEPENDS=""
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|prefix)/man|prefix)/share/man|' Makefile
27 patch -p0 < $stuff/genromfs.u
28 make &&
29 make PREFIX=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 ln -s genromfs $fs/usr/bin/mkromfs
38 }