wok view cdf/receipt @ rev 25615
Add libslirp (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 03 12:03:26 2023 +0000 (16 months ago) |
parents | 34e801e0eb52 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cdf"
4 VERSION="0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Colorized df (color schemes)."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/novel/cdf"
11 WGET_URL="https://src.fedoraproject.org/repo/pkgs/$PACKAGE/$TARBALL/1afd130f6c562700e8ad05724c6e1a9d/$TARBALL"
12 TAGS="color schemes"
14 DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://raw.githubusercontent.com/novel/cdf/master/ChangeLog 2>/dev/null | \
20 sed '/^Version /!d;s|.*ersion ||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
28 # Fix typos
29 sed -i 's/filesyitems/filesystems/' src/main.c
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }