wok-current annotate neon/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents 54e6c6e354d1
children e95024856175
rev   line source
erjo@1217 1 # SliTaz package receipt.
erjo@1217 2
erjo@1217 3 PACKAGE="neon"
Hans-G?nter@21537 4 VERSION="0.30.2"
pascal@1423 5 CATEGORY="development"
Hans-G?nter@21537 6 TAGS="http webdav"
Hans-G?nter@21537 7 SHORT_DESC="Neon HTTP and WebDAV client library."
erjo@1217 8 MAINTAINER="lehswe@gmail.com"
pascal@15584 9 LICENSE="GPL2"
Hans-G?nter@21537 10 WEB_SITE="http://www.webdav.org/neon"
Hans-G?nter@21537 11
erjo@1217 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@1217 13 WGET_URL="http://www.webdav.org/neon/$TARBALL"
erjo@1217 14
Hans-G?nter@21537 15 DEPENDS="expat libcomerr3 libkrb5 libssl zlib"
Hans-G?nter@21537 16 BUILD_DEPENDS="expat-dev libxml2-dev openssl-dev zlib-dev"
pascal@15584 17
pascal@24453 18 # What is the latest version available today?
pascal@24453 19 current_version()
pascal@24453 20 {
pascal@24453 21 wget -O - https://notroj.github.io/neon/ 2>/dev/null | \
pascal@24453 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 23 }
pascal@24453 24
erjo@1217 25 # Rules to configure and make the package.
erjo@1217 26 compile_rules()
erjo@1217 27 {
Hans-G?nter@21537 28 ./configure \
Hans-G?nter@21537 29 --prefix=/usr \
Hans-G?nter@21537 30 --infodir=/usr/share/info \
Hans-G?nter@21537 31 --with-ssl=openssl \
Hans-G?nter@21537 32 --mandir=/usr/share/man \
Hans-G?nter@21537 33 --enable-shared \
Hans-G?nter@21537 34 --disable-static \
Hans-G?nter@21537 35 $CONFIGURE_ARGS &&
pascal@1465 36 make &&
pascal@15584 37 make DESTDIR=$DESTDIR install
erjo@1217 38 }
erjo@1217 39
erjo@1217 40 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1217 41 genpkg_rules()
erjo@1217 42 {
pascal@3964 43 mkdir -p $fs/usr/lib
Hans-G?nter@21537 44
Hans-G?nter@21537 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21537 46 cp -a $install/usr/bin $fs/usr
erjo@1217 47 }