wok annotate obconf/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 1c458fa173fb
children 0a9d0d18ca64
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="obconf"
erjo@15746 4 VERSION="2.0.4"
pankso@357 5 CATEGORY="x-window"
al@18570 6 SHORT_DESC="Openbox configuration tool"
pankso@357 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
erjo@15746 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18570 10 WEB_SITE="http://openbox.org/wiki/ObConf:About"
erjo@15746 11 WGET_URL="http://openbox.org/dist/obconf/$TARBALL"
jozee@4970 12 TAGS="openbox"
pankso@16269 13 HOST_ARCH="i486 arm"
pankso@357 14
pankso@9856 15 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
pascal@15901 16 startup-notification slitaz-boot-scripts desktop-file-utils"
pankso@16269 17 BUILD_DEPENDS="gtk+-dev libglade-dev openbox-dev gdk-pixbuf-dev \
pascal@19459 18 startup-notification-dev xorg-libXft-dev"
pankso@9856 19
pascal@24071 20 current_version()
pascal@24071 21 {
pascal@24071 22 wget -O - http://openbox.org/wiki/Openbox:Download 2>/dev/null | \
pascal@24071 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 24 }
pascal@24071 25
pankso@357 26 # Rules to configure and make the package.
pankso@357 27 compile_rules()
pankso@357 28 {
al@19014 29 msgfmt -o $src/po/ru.gmo $stuff/ru.po
al@18570 30
erjo@15746 31 ./configure $CONFIGURE_ARGS &&
pascal@1566 32 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pankso@9856 33 make && make install
al@18570 34
al@18570 35 cp -f $stuff/obconf.desktop $install/usr/share/applications
pankso@357 36 }
pankso@357 37
pankso@357 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 39 genpkg_rules()
pankso@357 40 {
al@18570 41 mkdir -p $fs/usr/share/obconf
al@17261 42
pascal@15000 43 cp -a $install/usr/bin $fs/usr
al@18570 44 cp -a $install/usr/share/obconf/obconf.glade $fs/usr/share/obconf
pankso@357 45 }