wok-current annotate libevdev/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 3e62a2b10d0c
children 2a2477f51c27
rev   line source
Hans-G?nter@22265 1 # SliTaz package receipt.
Hans-G?nter@22265 2
Hans-G?nter@22265 3 PACKAGE="libevdev"
Hans-G?nter@23026 4 VERSION="1.9.0"
Hans-G?nter@22265 5 CATEGORY="x-window"
Hans-G?nter@22265 6 SHORT_DESC="Common functions for Xorg input drivers."
Hans-G?nter@22265 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@22265 8 LICENSE="other"
Hans-G?nter@22265 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/libevdev/"
Hans-G?nter@22265 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/x7driver.html#libevdev"
Hans-G?nter@22265 11
Hans-G?nter@22265 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@22265 13 WGET_URL="http://www.freedesktop.org/software/libevdev/$TARBALL"
Hans-G?nter@22265 14
Hans-G?nter@22265 15 BUILD_DEPENDS="check-dev python" # doxygen
Hans-G?nter@22265 16
pascal@24072 17 current_version()
pascal@24072 18 {
pascal@24072 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 21 }
pascal@24072 22
Hans-G?nter@22265 23 # Rules to configure and make the package.
Hans-G?nter@22265 24 compile_rules()
Hans-G?nter@22265 25 {
Hans-G?nter@22265 26 ./configure \
Hans-G?nter@22265 27 --disable-static \
Hans-G?nter@22265 28 $CONFIGURE_ARGS &&
Hans-G?nter@22265 29 make &&
Hans-G?nter@22265 30 make DESTDIR=$DESTDIR install
Hans-G?nter@22265 31 }
Hans-G?nter@22265 32
Hans-G?nter@22265 33 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@22265 34 genpkg_rules()
Hans-G?nter@22265 35 {
Hans-G?nter@22265 36 mkdir -p $fs/usr/lib
Hans-G?nter@22265 37
Hans-G?nter@22265 38 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22265 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22265 40 }