wok rev 3928

Add: rocrail
author Matthew Sheets <rcx@zoominternet.net>
date Wed Aug 19 10:22:01 2009 +0000 (2009-08-19)
parents 0cf1315d5ed9
children 617322eb9d0d
files rocrail/receipt rocrail/stuff/rocrail-make-v9bp.tgz xtrkcad/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rocrail/receipt	Wed Aug 19 10:22:01 2009 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="rocrail"
     1.7 +VERSION="1.2.6"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="A model railroad control system."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +DEPENDS="menu-railroad glibc-base gcc-lib-base libuuid zlib expat \
    1.12 +glib libgio wxWidgets gtk+ fontconfig freetype atk jpeg tiff libpng \
    1.13 +cairo pango pixman libxcb xcb-util \
    1.14 +xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
    1.15 +xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
    1.16 +xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm"
    1.17 +BUILD_DEPENDS="slitaz-toolchain wxWidgets-dev"
    1.18 +TARBALL="Rocrail-Act-$VERSION.tar.gz"
    1.19 +WEB_SITE="http://rocrail.net/"
    1.20 +WGET_URL="http://launchpad.net/$PACKAGE/$PACKAGE-act/1.2/+download/$TARBALL"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	# Determine if TOOLPREFIX has been defined in tazwok.conf as it should
    1.26 +	if [ -z "$TOOLPREFIX" ] ; then
    1.27 +		# Provide a default TOOLPREFIX value
    1.28 +		TOOLPREFIX=i486-pc-linux-gnu-
    1.29 +	fi
    1.30 +
    1.31 +	mv Rocrail-Act-1.2 $src
    1.32 +	rm -r -f $src/.bzr $src/.settings
    1.33 +
    1.34 +	# Apply the make updates v9 backported to rocrail 1.2.6
    1.35 +	tar xzf stuff/rocrail-make-v9bp.tgz
    1.36 +	cp -a rocrail/* $src
    1.37 +	rm -r -f rocrail
    1.38 +
    1.39 +	cd $src
    1.40 +	make &&
    1.41 +	make DESTDIR=$src/_pkg PREFIX=/usr install &&
    1.42 +	sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
    1.43 +}
    1.44 +
    1.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 +genpkg_rules()
    1.47 +{
    1.48 +	mkdir -p $fs
    1.49 +	cp -a $_pkg/usr $fs
    1.50 +	rm -r -f $fs/usr/share/desktop-directories
    1.51 +	rm -r -f $fs/usr/share/info
    1.52 +}
     2.1 Binary file rocrail/stuff/rocrail-make-v9bp.tgz has changed
     3.1 --- a/xtrkcad/receipt	Wed Aug 19 15:31:08 2009 +0200
     3.2 +++ b/xtrkcad/receipt	Wed Aug 19 10:22:01 2009 +0000
     3.3 @@ -42,7 +42,7 @@
     3.4  	cp -f $src/app/bin/xtrkcad.ico $src/_pkg/usr/share/pixmaps
     3.5  	mkdir -p $src/_pkg/usr/share/applications &&
     3.6  	cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications &&
     3.7 -	sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/xtrkcad.desktop
     3.8 +	sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
     3.9  }
    3.10  
    3.11  # Rules to gen a SliTaz package suitable for Tazpkg.