wok annotate freetds/receipt @ rev 24545
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 24 19:32:16 2022 +0000 (2022-02-24) |
parents | 539876c71561 |
children | b0893fb49894 |
rev | line source |
---|---|
pascal@1183 | 1 # SliTaz package receipt. |
pascal@1183 | 2 |
pascal@1183 | 3 PACKAGE="freetds" |
Hans-G?nter@22779 | 4 VERSION="1.1.24" |
pascal@1183 | 5 CATEGORY="system-tools" |
pascal@1183 | 6 SHORT_DESC="Microsoft SQL Server and Sybase databases client libraries." |
pascal@1183 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15154 | 8 LICENSE="GPL2" |
Hans-G?nter@22779 | 9 WEB_SITE="https://www.freetds.org/" |
Hans-G?nter@22779 | 10 |
Hans-G?nter@22780 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22780 | 12 WGET_URL="${WEB_SITE}files/stable/$TARBALL" |
pascal@1183 | 13 |
pascal@15154 | 14 DEPENDS="libunixODBC ncurses readline" |
pascal@15154 | 15 BUILD_DEPENDS="readline-dev" |
pascal@15154 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 21 sed "/patch/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 22 } |
pascal@24427 | 23 |
pascal@1183 | 24 # Rules to configure and make the package. |
pascal@1183 | 25 compile_rules() |
pascal@1183 | 26 { |
Hans-G?nter@22779 | 27 ./configure \ |
Hans-G?nter@22779 | 28 --prefix=/usr \ |
Hans-G?nter@22779 | 29 --infodir=/usr/share/info \ |
Hans-G?nter@22779 | 30 --sysconfdir=/etc \ |
Hans-G?nter@22779 | 31 --mandir=/usr/share/man \ |
pascal@15154 | 32 $CONFIGURE_ARGS 2>&1 | grep -v /config.rpath && |
pascal@1470 | 33 make && |
pascal@23513 | 34 make -j 1 DESTDIR=$DESTDIR install |
pascal@1183 | 35 } |
pascal@1183 | 36 |
pascal@1183 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1183 | 38 genpkg_rules() |
pascal@1183 | 39 { |
pascal@1183 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@22779 | 41 |
Hans-G?nter@22779 | 42 cp -a $install/etc $fs |
Hans-G?nter@22779 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22779 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@1183 | 45 } |