wok-undigest diff rocrail/receipt @ rev 698

Add audit-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 10 09:56:04 2012 +0200 (2012-05-10)
parents
children 891d0fb9ac4e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rocrail/receipt	Thu May 10 09:56:04 2012 +0200
     1.3 @@ -0,0 +1,44 @@
     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 +TARBALL="Rocrail-Act-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://rocrail.net/"
    1.13 +WGET_URL="http://launchpad.net/$PACKAGE/$PACKAGE-act/1.2/+download/$TARBALL"
    1.14 +
    1.15 +DEPENDS="menu-railroad util-linux-ng-uuid zlib expat glib libgio wxWidgets \
    1.16 +gtk+ fontconfig freetype atk jpeg tiff libpng cairo pango pixman libxcb \
    1.17 +xcb-util xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
    1.18 +xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
    1.19 +xorg-libXinerama xorg-libXrender xorg-libXxf86vm"
    1.20 +BUILD_DEPENDS="slitaz-toolchain wxWidgets-dev xorg-libXxf86vm-dev gtk+-dev \
    1.21 +util-linux-ng-uuid-dev"
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +compile_rules()
    1.25 +{
    1.26 +	mv Rocrail-Act-1.2 $src
    1.27 +	rm -r -f $src/.bzr $src/.settings
    1.28 +
    1.29 +	# Apply the make updates v9 backported to rocrail 1.2.6
    1.30 +	tar xzf $stuff/rocrail-make-v9bp.tgz
    1.31 +	cp -a rocrail/* $src && rm -rf rocrail
    1.32 +
    1.33 +	cd $src
    1.34 +	make -j1 TOOLPREFIX=$TOOLPREFIX &&
    1.35 +	make -j1 DESTDIR=$DESTDIR PREFIX=/usr install &&
    1.36 +	sed -i 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' \
    1.37 +		$DESTDIR/usr/share/applications/*.desktop
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs
    1.44 +	cp -a $_pkg/usr $fs
    1.45 +	rm -r -f $fs/usr/share/desktop-directories
    1.46 +	rm -r -f $fs/usr/share/info
    1.47 +}