wok view matchbox-desktop/receipt @ rev 24942

BootProg: clear cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 20 15:10:50 2022 +0000 (2022-04-20)
parents d3eb5f4b53ea
children 00e3b45c063b
line source
1 # SliTaz package receipt.
3 PACKAGE="matchbox-desktop"
4 VERSION="0.9.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Matchbox desktop."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://matchbox-project.org/"
11 WGET_URL="${WEB_SITE}sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+ startup-notification libmatchbox"
14 BUILD_DEPENDS="gtk+-dev startup-notification-dev libmatchbox-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://mirrors.kernel.org/yocto/matchbox/matchbox-desktop/$( \
20 wget -O - http://mirrors.kernel.org/yocto/matchbox/matchbox-desktop/ 2>/dev/null | \
21 sed '/href="0/!d;s|.*="||;s|/.*||' | sort -Vr | sed q)/ 2>/dev/null | \
22 sed '/href="matchbox-desktop-[0-9]/!d;s|.*="matchbox-desktop-||;s|.tar.*||' | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl"
29 ./configure \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 sed -i s'/$(install_sh) -d/mkdir -p/' data/Makefile &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/matchbox/desktop
40 cp -a $install/etc $fs
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/matchbox/desktop/*.so \
43 $fs/usr/lib/matchbox/desktop
44 cp -a $install/usr/share $fs/usr
45 }