wok-current annotate udns/receipt @ rev 25701
Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Apr 19 12:48:51 2024 +0000 (7 months ago) |
parents | 4d2f27498c4b |
children |
rev | line source |
---|---|
pascal@2131 | 1 # SliTaz package receipt. |
pascal@2131 | 2 |
pascal@2131 | 3 PACKAGE="udns" |
Hans-G?nter@22070 | 4 VERSION="0.4" |
pascal@2131 | 5 CATEGORY="network" |
Hans-G?nter@22070 | 6 TAGS="network DNS" |
Hans-G?nter@22070 | 7 SHORT_DESC="Synchronous and asynchronous DNS resolver." |
pascal@2131 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15363 | 9 LICENSE="LGPL2.1" |
Hans-G?nter@22070 | 10 WEB_SITE="https://www.corpit.ru/mjt/$PACKAGE.html" |
Hans-G?nter@22070 | 11 |
slaxemulator@8435 | 12 TARBALL="${PACKAGE}-$VERSION.tar.gz" |
Hans-G?nter@22070 | 13 WGET_URL="https://www.corpit.ru/mjt/$PACKAGE/$TARBALL" |
Hans-G?nter@22070 | 14 |
Hans-G?nter@22070 | 15 BUILD_DEPENDS="bash" |
pascal@2131 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pascal@2131 | 24 # Rules to configure and make the package. |
pascal@2131 | 25 compile_rules() |
pascal@2131 | 26 { |
pascal@5946 | 27 # GCC 4.5 fix |
pascal@5946 | 28 sed -i 's/"$@" >/$@ >/' configure.lib |
Hans-G?nter@22070 | 29 bash ./configure && |
Hans-G?nter@22070 | 30 make staticlib sharedlib rblcheck_s dnsget_s |
pascal@2131 | 31 } |
pascal@2131 | 32 |
pascal@2131 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2131 | 34 genpkg_rules() |
pascal@2131 | 35 { |
Hans-G?nter@22070 | 36 mkdir -p $fs/usr/lib |
Hans-G?nter@22070 | 37 mkdir -p $fs/usr/bin |
Hans-G?nter@22070 | 38 |
Hans-G?nter@22070 | 39 cp -a $src/libudns.so.0 $fs/usr/lib |
Hans-G?nter@22070 | 40 ln -s /usr/lib/libudns.so.0 $fs/usr/lib/libudns.so |
Hans-G?nter@22070 | 41 cp -a $src/dnsget_s $fs/usr/bin/dnsget |
Hans-G?nter@22070 | 42 cp -a $src/rblcheck_s $fs/usr/bin/rblcheck |
pascal@2131 | 43 } |