wok-current view icewm-xdgmenu/receipt @ rev 25483

created recipe for py3k-six
author Hans-G?nter Theisgen
date Mon Oct 17 07:54:33 2022 +0100 (2022-10-17)
parents e3f377fbc5f0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="icewm-xdgmenu"
4 VERSION="0.7.6-9"
5 CATEGORY="x-window"
6 SHORT_DESC="icewm App-Menu generator (pl/py-free version)"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://web.archive.org/web/20150421203203/http://bkhome.org/blog/?viewDetailed=02680"
10 SOURCE="xdg_puppy"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="http://distro.ibiblio.org/puppylinux/sources/x/$TARBALL"
14 DEPENDS="gnome-menus slitaz-menus icewm"
15 BUILD_DEPENDS="gnome-menus gnome-menus-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/$PACKAGE
28 sed -i 's|root0/.|usr/share/|g' Makefile
29 sed -i '/tar -/d' Makefile && make
30 make PKGNAME=$install BINDIR=/usr/bin install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 cp -f $stuff/* $fs/usr/share/icewm
38 }
40 post_install()
41 {
42 ico="/usr/share/icons/SliTaz"
43 IconPath="$ico/apps/22:/usr/share/pixmaps:$ico/categories/22:$ico/devices/22:$ico/mimetypes/32"
44 pref="$1/usr/share/icewm/preferences"
45 echo ' '>> $pref
46 echo 'IconPath="'$IconPath'"' >> $pref
47 echo 'MenuMouseTracking=1' >> $pref
48 }