wok annotate log4c/receipt @ rev 24789

grep: add post_install (install)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:36:52 2022 +0000 (2022-03-21)
parents 757039210b24
children d3556b8f5c3d
rev   line source
erjo@13410 1 # SliTaz package receipt.
erjo@13410 2
erjo@13410 3 PACKAGE="log4c"
Hans-G?nter@21374 4 VERSION="1.2.4"
erjo@13410 5 CATEGORY="system-tools"
Hans-G?nter@21374 6 SHORT_DESC="Logging for C Library."
erjo@13410 7 MAINTAINER="erjo@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
Hans-G?nter@21374 9 WEB_SITE="https://log4c.sourceforge.io"
Hans-G?nter@21374 10
erjo@13410 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21374 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
erjo@13410 13
erjo@13410 14 DEPENDS=""
erjo@13410 15 BUILD_DEPENDS=""
erjo@13410 16
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - https://sourceforge.net/projects/log4c/files/log4c/ 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*/log4c/||;s|/.*||;q'
pascal@24411 23 }
pascal@24411 24
erjo@13410 25 # Rules to configure and make the package.
erjo@13410 26 compile_rules()
erjo@13410 27 {
Hans-G?nter@21374 28 ./configure \
Hans-G?nter@21374 29 --sysconfdir=/etc \
Hans-G?nter@21374 30 $CONFIGURE_ARGS &&
Hans-G?nter@21374 31 make -j 1 &&
Hans-G?nter@21374 32 make install
erjo@13410 33 }
erjo@13410 34
erjo@13410 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@13410 36 genpkg_rules()
erjo@13410 37 {
erjo@13410 38 mkdir -p $fs/usr/lib $fs/etc
Hans-G?nter@21374 39
Hans-G?nter@21374 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21374 41 cp -a $install/etc/log4crc.sample $fs/etc/log4crc
erjo@13410 42 }