wok-current view obmenu/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 months ago) |
parents | 370da83187ab |
children |
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="https://sourceforge.net/projects/obmenu/"
11 WGET_URL="$SF_MIRROR/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 }