wok-current view mygestures/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | 3d04aad6c72c |
children | ad0bc3efbf37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mygestures"
4 VERSION="2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Recognizing gestures made with your mouse and perform actions."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/mygestures/"
11 TARBALL="${PACKAGE}_$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="jansson xorg-libX11 xorg-libXtst"
15 BUILD_DEPENDS="gcc83 jansson-dev xorg-libX11-dev xorg-libXtst"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/mygestures/files/mygestures/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/mygestures/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export CC=gcc-83
31 export CXX=g++-83
33 ./configure \
34 --sysconfdir=/etc/$PACKAGE \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
45 cp -a $install/etc $fs
46 cp -a $install/usr/bin $fs/usr
47 }