wok view rocrail/receipt @ rev 3933

mirror-tools: rename /etc/tazwok.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 20 13:35:04 2009 +0200 (2009-08-20)
parents
children 2b12949488f4
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 DEPENDS="menu-railroad glibc-base gcc-lib-base libuuid zlib expat \
9 glib libgio wxWidgets gtk+ fontconfig freetype atk jpeg tiff libpng \
10 cairo pango pixman libxcb xcb-util \
11 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
12 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
13 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm"
14 BUILD_DEPENDS="slitaz-toolchain wxWidgets-dev"
15 TARBALL="Rocrail-Act-$VERSION.tar.gz"
16 WEB_SITE="http://rocrail.net/"
17 WGET_URL="http://launchpad.net/$PACKAGE/$PACKAGE-act/1.2/+download/$TARBALL"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
23 if [ -z "$TOOLPREFIX" ] ; then
24 # Provide a default TOOLPREFIX value
25 TOOLPREFIX=i486-pc-linux-gnu-
26 fi
28 mv Rocrail-Act-1.2 $src
29 rm -r -f $src/.bzr $src/.settings
31 # Apply the make updates v9 backported to rocrail 1.2.6
32 tar xzf stuff/rocrail-make-v9bp.tgz
33 cp -a rocrail/* $src
34 rm -r -f rocrail
36 cd $src
37 make &&
38 make DESTDIR=$src/_pkg PREFIX=/usr install &&
39 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs
46 cp -a $_pkg/usr $fs
47 rm -r -f $fs/usr/share/desktop-directories
48 rm -r -f $fs/usr/share/info
49 }