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