wok-current view lxinput/receipt @ rev 25586
Fix linux build with gcc > 6 again
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 29 12:23:26 2023 +0000 (19 months ago) |
parents | 56253db1eb5e |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxinput"
4 VERSION="0.3.5"
5 CATEGORY="x-window"
6 TAGS="LXDE keyboard mouse"
7 SHORT_DESC="LXDE keyboard and mouse configuration."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://lxde.org"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 DEPENDS="gtk+ xorg-xset"
16 BUILD_DEPENDS="gtk+-dev"
17 GENERIC_MENUS="no"
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/lxde/files/LXInput%20%28Kbd%20and%20amp_%20mouse%20config%29/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
42 rm -r $fs/usr/share/locale
43 rm -r $fs/usr/share/man
44 rm -r $fs/usr/share/lxinput/*.png
46 sed -i 's|^Icon=.*$|Icon=preferences-desktop-keyboard|' \
47 $fs/usr/share/applications/lxinput.desktop
48 }