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