wok-next annotate obmenu/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | a3254b6a96ac |
children | d5aab818505e |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
paul@1568 | 2 |
paul@1568 | 3 PACKAGE="obmenu" |
paul@1568 | 4 VERSION="1.0" |
paul@1568 | 5 CATEGORY="x-window" |
al@20513 | 6 SHORT_DESC="Openbox menu editor" |
paul@1568 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15590 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="http://obmenu.sourceforge.net/index.html" |
al@20513 | 10 |
paul@1568 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21017 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
paul@1568 | 13 |
al@21017 | 14 BUILD_DEPENDS="python-dev" |
pascal@15590 | 15 |
al@20513 | 16 compile_rules() { |
al@21017 | 17 python -B setup.py build && |
al@21017 | 18 python -B setup.py install --root=$DESTDIR |
paul@1568 | 19 } |
paul@1568 | 20 |
al@20513 | 21 genpkg_rules() { |
al@20513 | 22 copy @std |
al@20976 | 23 DEPENDS="python python-pycairo python-pygobject2 python-pygtk libffi" |
al@20513 | 24 TAGS="openbox" |
paul@1568 | 25 } |
paul@1568 | 26 |
al@20513 | 27 post_install() { |
al@20513 | 28 # Enabling configuration file |
pascal@18730 | 29 cp "$1/home/tux/.config/openbox/menu.xml" "$1/root/.config/openbox" |
paul@1568 | 30 } |
paul@1568 | 31 |
al@20513 | 32 post_remove() { |
al@20513 | 33 # Removing configuration file |
pascal@18730 | 34 rm "$1/root/.config/openbox/menu.xml" |
paul@1568 | 35 } |