wok-6.x annotate xcb-util-cursor/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 5833ecdc956f |
children |
rev | line source |
---|---|
Hans-G?nter@23801 | 1 # SliTaz package receipt. |
Hans-G?nter@23801 | 2 |
Hans-G?nter@23801 | 3 PACKAGE="xcb-util-cursor" |
Hans-G?nter@23801 | 4 VERSION="0.1.3" |
Hans-G?nter@23801 | 5 CATEGORY="x-window" |
Hans-G?nter@23801 | 6 TAGS="Xorg" |
Hans-G?nter@23801 | 7 SHORT_DESC="XCB cursor library." |
Hans-G?nter@23801 | 8 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@23801 | 9 LICENSE="MIT" |
Hans-G?nter@23801 | 10 WEB_SITE="https://xcb.freedesktop.org/" |
Hans-G?nter@23801 | 11 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/xcb-util-cursor.html" |
Hans-G?nter@23801 | 12 |
Hans-G?nter@23801 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@23801 | 14 WGET_URL="$XORG_MIRROR/xcb/$TARBALL" |
Hans-G?nter@23801 | 15 TARBALL_SHA1="26562eb6d4151307f7b6a53453d360ecfc0563ac" |
Hans-G?nter@23801 | 16 |
Hans-G?nter@23801 | 17 DEPENDS="libxcb xcb-util-image xcb-util-renderutil" |
Hans-G?nter@23801 | 18 BUILD_DEPENDS="libxcb-dev xcb-util-dev xcb-util-image-dev xcb-util-renderutil-dev" |
Hans-G?nter@23801 | 19 |
pascal@24415 | 20 # What is the latest version available today? |
pascal@24415 | 21 current_version() |
pascal@24415 | 22 { |
pascal@24415 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24415 | 25 } |
pascal@24415 | 26 |
Hans-G?nter@23801 | 27 # Rules to configure and make the package. |
Hans-G?nter@23801 | 28 compile_rules() |
Hans-G?nter@23801 | 29 { |
Hans-G?nter@23801 | 30 ./configure \ |
Hans-G?nter@23801 | 31 --disable-static \ |
Hans-G?nter@23801 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@23801 | 33 make && |
Hans-G?nter@23801 | 34 make install |
Hans-G?nter@23801 | 35 } |
Hans-G?nter@23801 | 36 |
Hans-G?nter@23801 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@23801 | 38 genpkg_rules() |
Hans-G?nter@23801 | 39 { |
Hans-G?nter@23801 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@23801 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@23801 | 42 } |