wok-current view lxshortcut/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 ee53899c6189
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lxshortcut"
4 VERSION="0.1.2"
5 CATEGORY="x-window"
6 SHORT_DESC="LXDE application shortcut editor"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.lxde.org/"
11 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
12 TAGS="LXDE"
14 DEPENDS="glib glibc-base libgio expat zlib \
15 gtk+ atk cairo pango pixman libpng fontconfig freetype \
16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
17 BUILD_DEPENDS="pkg-config gettext intltool gtk+-dev \
18 xorg-xproto xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev xorg-libXdmcp-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/lxde/files/LXShortcut%20%28edit%20app%20shortcut%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 ## Fix infinite loop.
32 #touch po/stamp-it
33 ./configure \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/lxshortcut $fs/usr/share
47 }