wok annotate liboping/receipt @ rev 24792

updated libgdiplus and libgdiplus-dev (6.0.4 -> 6.0.5)
author Hans-G?nter Theisgen
date Mon Mar 21 14:27:40 2022 +0100 (2022-03-21)
parents fafbb5087ce7
children 6b30e1fc52dd
rev   line source
paul@19207 1 # SliTaz package receipt.
paul@19207 2
paul@19207 3 PACKAGE="liboping"
Hans-G?nter@21269 4 VERSION="1.10.0"
paul@19207 5 CATEGORY="network"
paul@19207 6 SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel."
paul@19207 7 MAINTAINER="paul@slitaz.org"
paul@19207 8 LICENSE="LGPL2.1"
Hans-G?nter@21269 9 WEB_SITE="https://noping.cc/"
paul@19207 10
Hans-G?nter@21269 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21269 12 WGET_URL="https://noping.cc/files/$TARBALL"
Hans-G?nter@21269 13
Hans-G?nter@21269 14 DEPENDS="libcap ncurses"
Hans-G?nter@21269 15 BUILD_DEPENDS="libcap-dev ncurses-dev perl"
paul@19207 16
pascal@24447 17 # What is the latest version available today?
pascal@24447 18 current_version()
pascal@24447 19 {
pascal@24447 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 22 }
pascal@24447 23
paul@19207 24 # Rules to configure and make the package.
paul@19207 25 compile_rules()
paul@19207 26 {
pascal@19940 27 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
Hans-G?nter@21269 28
Hans-G?nter@21269 29 ./configure \
Hans-G?nter@21269 30 --prefix=/usr \
paul@19207 31 $CONFIGURE_ARGS &&
Hans-G?nter@21269 32 make -j 1 &&
paul@19207 33 make DESTDIR=$DESTDIR install
paul@19207 34 }
paul@19207 35
paul@19207 36 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19207 37 genpkg_rules()
paul@19207 38 {
paul@19207 39 mkdir -p $fs/usr/lib
Hans-G?nter@21269 40
Hans-G?nter@21269 41 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21269 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
paul@19207 43 }
paul@19207 44
paul@19207 45 post_install()
paul@19207 46 {
paul@19207 47 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
paul@19207 48 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
paul@19207 49 }