wok view xorg-libxshmfence/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 469f8561ac86
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-libxshmfence"
4 VERSION="1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="X11 shared memory fences."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://xorg.freedesktop.org/"
11 SOURCE="libxshmfence"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="https://www.x.org/releases/individual/lib/$TARBALL"
15 current_version()
16 {
17 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
18 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
19 }
21 compile_rules()
22 {
23 ./configure \
24 --prefix=/usr \
25 --enable-futex \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 }