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