wok view rocrail/receipt @ rev 7674
Fixed linux. Need to make folder PWD/_pkg before adding bzImage to it. Also i'm force copying kernel config file now so we have the right config. It is copyed twice so its needed and doesn't hunt anything i think.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 16 17:16:06 2010 +0000 (2010-12-16) |
parents | 0588160a6878 |
children | 2ba9af518eaa |
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 util-linux-ng-uuid 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 xorg-libXxf86vm"
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 mv Rocrail-Act-1.2 $src
23 rm -r -f $src/.bzr $src/.settings
25 # Apply the make updates v9 backported to rocrail 1.2.6
26 tar xzf stuff/rocrail-make-v9bp.tgz
27 cp -a rocrail/* $src
28 rm -r -f rocrail
30 cd $src
31 make TOOLPREFIX=$TOOLPREFIX &&
32 make DESTDIR=$src/_pkg PREFIX=/usr install &&
33 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs
40 cp -a $_pkg/usr $fs
41 rm -r -f $fs/usr/share/desktop-directories
42 rm -r -f $fs/usr/share/info
43 }