wok annotate geos/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents bc9b397dec56
children 633a990fb38c
rev   line source
erjo@11629 1 # SliTaz package receipt.
erjo@11629 2
erjo@11629 3 PACKAGE="geos"
Hans-G?nter@22821 4 VERSION="3.8.0"
erjo@11629 5 CATEGORY="misc"
erjo@11629 6 SHORT_DESC="Geometry Engine, Open Source."
erjo@11629 7 MAINTAINER="erjo@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
pascal@21954 9 WEB_SITE="https://trac.osgeo.org/geos/"
Hans-G?nter@22821 10
erjo@11629 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@11629 12 WGET_URL="http://download.osgeo.org/geos/$TARBALL"
erjo@11629 13
Hans-G?nter@22821 14 DEPENDS="gcc83-lib-base"
Hans-G?nter@22821 15 BUILD_DEPENDS="gcc83"
erjo@11629 16
pascal@24445 17 # What is the latest version available today?
pascal@24445 18 current_version()
pascal@24445 19 {
pascal@24445 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 22 }
pascal@24445 23
erjo@11629 24 # Rules to configure and make the package.
erjo@11629 25 compile_rules()
erjo@11629 26 {
Hans-G?nter@22821 27 ./configure \
Hans-G?nter@22821 28 CC=gcc-83 \
Hans-G?nter@22821 29 CXX=g++-83 \
Hans-G?nter@22821 30 $CONFIGURE_ARGS &&
Hans-G?nter@22821 31 make &&
Hans-G?nter@22821 32 make install
erjo@11629 33 }
erjo@11629 34
erjo@11629 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11629 36 genpkg_rules()
erjo@11629 37 {
erjo@11629 38 mkdir -p $fs/usr/lib
Hans-G?nter@22821 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@11629 40 }