wok-current view leocad/receipt @ rev 4239

task: fix WGET (again)
author Paul Issott <paul@slitaz.org>
date Thu Sep 24 17:50:39 2009 +0000 (2009-09-24)
parents e3a098f25f0b
children 8fdabf52013b
line source
1 # SliTaz package receipt.
3 PACKAGE="leocad"
4 VERSION="0.75-1"
5 CATEGORY="games"
6 SHORT_DESC="A CAD program that uses toy bricks."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base gcc-lib-base glib libgio expat zlib leocad-pieces \
9 gtk+ atk cairo pixman pango jpeg libpng fontconfig freetype libxcb xcb-util \
10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
12 xorg-libXrender"
13 BUILD_DEPENDS=""
14 TARBALL="$PACKAGE-$VERSION.i386.rpm"
15 WEB_SITE="http://www.leocad.org/"
16 WGET_URL="http://www.leocad.org/files/$TARBALL"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 echo " ** Ignoring Extract Error **"
23 mkdir -p $src/_pkg/usr/lib/leocad
24 cp -a stuff/share $src/_pkg/usr
26 cd $src
28 # Extract the rpm
29 rpm2cpio $SOURCES_REPOSITORY/$TARBALL | cpio -idmv
31 cp -a usr/local/bin/leocad _pkg/usr/lib/leocad
33 # Create the shell script launcher
34 mkdir -p _pkg/usr/bin
35 cat > _pkg/usr/bin/leocad << EOF
36 #!/bin/sh
38 LEOCAD_LIB=/usr/share/leocad \\
39 /usr/lib/leocad/leocad
40 EOF
41 chmod +x _pkg/usr/bin/leocad
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs
48 cp -a $_pkg/* $fs
49 }