wok-undigest view rocrail/receipt @ rev 710

move mingw32-* to wok
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 29 17:24:19 2012 +0200 (2012-05-29)
parents c3c3150f69c0
children a9b3597bcd2f
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-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 }