wok-4.x view rocrail/receipt @ rev 10677

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