wok-undigest annotate rocrail/receipt @ rev 602

Move libextractor-dev to wok
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 25 15:20:35 2011 +0100 (2011-12-25)
parents
children 891d0fb9ac4e
rev   line source
pankso@289 1 # SliTaz package receipt.
pankso@289 2
pankso@289 3 PACKAGE="rocrail"
pankso@289 4 VERSION="1.2.6"
pankso@289 5 CATEGORY="games"
pankso@289 6 SHORT_DESC="A model railroad control system."
pankso@289 7 MAINTAINER="rcx@zoominternet.net"
pankso@289 8 TARBALL="Rocrail-Act-$VERSION.tar.gz"
pankso@289 9 WEB_SITE="http://rocrail.net/"
pankso@289 10 WGET_URL="http://launchpad.net/$PACKAGE/$PACKAGE-act/1.2/+download/$TARBALL"
pankso@289 11
pankso@289 12 DEPENDS="menu-railroad util-linux-ng-uuid zlib expat glib libgio wxWidgets \
pankso@289 13 gtk+ fontconfig freetype atk jpeg tiff libpng cairo pango pixman libxcb \
pankso@289 14 xcb-util xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
pankso@289 15 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
pankso@289 16 xorg-libXinerama xorg-libXrender xorg-libXxf86vm"
pankso@289 17 BUILD_DEPENDS="slitaz-toolchain wxWidgets-dev xorg-libXxf86vm-dev gtk+-dev \
pankso@289 18 util-linux-ng-uuid-dev"
pankso@289 19
pankso@289 20 # Rules to configure and make the package.
pankso@289 21 compile_rules()
pankso@289 22 {
pankso@289 23 mv Rocrail-Act-1.2 $src
pankso@289 24 rm -r -f $src/.bzr $src/.settings
pankso@289 25
pankso@289 26 # Apply the make updates v9 backported to rocrail 1.2.6
pankso@289 27 tar xzf $stuff/rocrail-make-v9bp.tgz
pankso@289 28 cp -a rocrail/* $src && rm -rf rocrail
pankso@289 29
pankso@289 30 cd $src
pankso@289 31 make -j1 TOOLPREFIX=$TOOLPREFIX &&
pankso@289 32 make -j1 DESTDIR=$DESTDIR PREFIX=/usr install &&
pankso@289 33 sed -i 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' \
pankso@289 34 $DESTDIR/usr/share/applications/*.desktop
pankso@289 35 }
pankso@289 36
pankso@289 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@289 38 genpkg_rules()
pankso@289 39 {
pankso@289 40 mkdir -p $fs
pankso@289 41 cp -a $_pkg/usr $fs
pankso@289 42 rm -r -f $fs/usr/share/desktop-directories
pankso@289 43 rm -r -f $fs/usr/share/info
pankso@289 44 }