wok view obmenu/receipt @ rev 24361

glibmm, glibmm-dev: fix Private:gobj()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 04 09:24:50 2022 +0000 (2022-02-04)
parents 970c5ec9a60a
children 65ff25c4de90
line source
1 # SliTaz package receipt.
3 PACKAGE="obmenu"
4 VERSION="1.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Openbox menu editor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://obmenu.sourceforge.net/index.html"
11 WGET_URL="http://downloads.sourceforge.net/obmenu/$TARBALL"
12 TAGS="openbox"
14 DEPENDS="python pycairo pygobject pygtk libffi"
15 BUILD_DEPENDS="python python-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/obmenu/files/obmenu/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/obmenu/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/pixmaps
36 cp -a $install/usr $fs
37 cp $install/usr/share/obmenu/mnu48.png $fs/usr/share/pixmaps
38 }
40 post_install()
41 {
42 echo
43 echo -n "Enabling configuration file..."
44 cp "$1/home/tux/.config/openbox/menu.xml" "$1/root/.config/openbox"
45 status
46 }
48 post_remove()
49 {
50 echo -n "Removing configuration files..."
51 rm "$1/root/.config/openbox/menu.xml"
52 status
53 }