wok view genromfs/receipt @ rev 24281

cookutils: remove old pkgdb.block
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 11 15:46:14 2022 +0000 (2022-01-11)
parents e3270f32432e
children ac8ca9758df1
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="http://romfs.sourceforge.net/"
11 WGET_URL="https://github.com/chexum/$PACKAGE/archive/$VERSION.tar.gz"
13 DEPENDS=""
14 BUILD_DEPENDS="wget"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|prefix)/man|prefix)/share/man|' Makefile
26 patch -p0 < $stuff/genromfs.u
27 make &&
28 make PREFIX=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 ln -s genromfs $fs/usr/bin/mkromfs
37 }