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