wok-6.x annotate libev/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 248a3f57e01a |
children | af2087495a35 |
rev | line source |
---|---|
mallory@2683 | 1 # SliTaz package receipt. |
mallory@2683 | 2 |
mallory@2683 | 3 PACKAGE="libev" |
Hans-G?nter@23025 | 4 VERSION="4.31" |
mallory@2683 | 5 CATEGORY="system-tools" |
pankso@16441 | 6 SHORT_DESC="A full-featured and high-performance event loop." |
mallory@2683 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15472 | 8 LICENSE="BSD" |
Hans-G?nter@21174 | 9 WEB_SITE="http://software.schmorp.de/pkg/libev.html" |
Hans-G?nter@21174 | 10 |
mallory@2683 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mallory@2683 | 12 WGET_URL="http://dist.schmorp.de/libev/$TARBALL" |
Hans-G?nter@21174 | 13 |
pankso@16441 | 14 HOST_ARCH="i486 arm" |
mallory@2683 | 15 |
pascal@24447 | 16 # What is the latest version available today? |
pascal@24447 | 17 current_version() |
pascal@24447 | 18 { |
pascal@24447 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 21 } |
pascal@24447 | 22 |
mallory@2683 | 23 # Rules to configure and make the package. |
mallory@2683 | 24 compile_rules() |
mallory@2683 | 25 { |
slaxemulator@10206 | 26 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21174 | 27 make -j 1 && |
Hans-G?nter@21174 | 28 make install |
mallory@2683 | 29 } |
mallory@2683 | 30 |
mallory@2683 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2683 | 32 genpkg_rules() |
mallory@2683 | 33 { |
slaxemulator@10206 | 34 mkdir -p $fs/usr/lib |
Hans-G?nter@23025 | 35 cp -a $install/usr/lib/*.so* $fs/usr/lib |
mallory@2683 | 36 } |