wok annotate cdf/receipt @ rev 24757
pkg-config: cheat configure
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 18 06:53:58 2022 +0100 (2022-03-18) |
parents | 6e8b1bcb30e2 |
children | 192db54e5c3d |
rev | line source |
---|---|
paul@2906 | 1 # SliTaz package receipt. |
paul@2906 | 2 |
paul@2906 | 3 PACKAGE="cdf" |
paul@2906 | 4 VERSION="0.2" |
paul@2906 | 5 CATEGORY="system-tools" |
jozee@4933 | 6 SHORT_DESC="Colorized df (color schemes)." |
paul@2906 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
paul@2906 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20671 | 10 WEB_SITE="https://github.com/novel/cdf" |
paul@2906 | 11 WGET_URL="http://download.berlios.de/bmp-plugins/$TARBALL" |
jozee@4933 | 12 TAGS="color schemes" |
paul@2906 | 13 |
pascal@15579 | 14 DEPENDS="" |
pascal@15579 | 15 |
pascal@24497 | 16 # What is the latest version available today? |
pascal@24497 | 17 current_version() |
pascal@24497 | 18 { |
pascal@24497 | 19 wget -O - https://raw.githubusercontent.com/novel/cdf/master/ChangeLog 2>/dev/null | \ |
pascal@24497 | 20 sed '/^Version /!d;s|.*ersion ||' | sort -Vr | sed q |
pascal@24497 | 21 } |
pascal@24497 | 22 |
paul@2906 | 23 # Rules to configure and make the package. |
paul@2906 | 24 compile_rules() |
paul@2906 | 25 { |
paul@2906 | 26 cd $src |
paul@2906 | 27 |
paul@2906 | 28 # Fix typos |
paul@2906 | 29 sed -i 's/filesyitems/filesystems/' src/main.c |
paul@2906 | 30 |
paul@2906 | 31 ./configure \ |
paul@2906 | 32 --prefix=/usr \ |
paul@2906 | 33 --infodir=/usr/share/info \ |
paul@2906 | 34 --mandir=/usr/share/man \ |
paul@2906 | 35 $CONFIGURE_ARGS && |
pascal@15579 | 36 make && make DESTDIR=$DESTDIR install |
paul@2906 | 37 } |
paul@2906 | 38 |
paul@2906 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@2906 | 40 genpkg_rules() |
paul@2906 | 41 { |
paul@2906 | 42 mkdir -p $fs/usr |
pascal@15579 | 43 cp -a $install/usr/bin $fs/usr |
paul@2906 | 44 } |