wok annotate leocad/receipt @ rev 14908

slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 03 17:37:48 2013 +0300 (2013-08-03)
parents 678455567f02
children 2a5cc8208d36
rev   line source
rcx@3709 1 # SliTaz package receipt.
rcx@3709 2
rcx@3709 3 PACKAGE="leocad"
pascal@12910 4 VERSION="0.76.2"
rcx@3709 5 CATEGORY="games"
rcx@3709 6 SHORT_DESC="A CAD program that uses toy bricks."
rcx@3709 7 MAINTAINER="rcx@zoominternet.net"
slaxemulator@11194 8 TARBALL="$PACKAGE-$VERSION-src.tgz"
pankso@10744 9 WEB_SITE="http://code.google.com/p/leocad/"
pankso@10744 10 WGET_URL="http://leocad.googlecode.com/files/$TARBALL"
pankso@10744 11
rcx@3709 12 DEPENDS="glibc-base gcc-lib-base glib libgio expat zlib leocad-pieces \
rcx@3709 13 gtk+ atk cairo pixman pango jpeg libpng fontconfig freetype libxcb xcb-util \
rcx@3709 14 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
rcx@3709 15 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
slaxemulator@9310 16 xorg-libXrender mesa libglu-mesa"
pascal@12586 17 BUILD_DEPENDS="mesa-dev gtk+-dev glib-dev"
rcx@3709 18
rcx@3709 19 # Rules to configure and make the package.
rcx@3709 20 compile_rules()
rcx@3709 21 {
slaxemulator@9310 22 cd $src
pascal@12910 23 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11 -ldl"
slaxemulator@9310 24 make PREFIX="/usr" config &&
pankso@10744 25 make && make install
rcx@3709 26 }
rcx@3709 27
rcx@3709 28 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3709 29 genpkg_rules()
rcx@3709 30 {
pankso@10744 31 mkdir -p $fs/usr/lib/leocad \
pankso@10744 32 $fs/usr/bin
slaxemulator@9310 33
pankso@10744 34 # Create the shell script launcher
pankso@10744 35 cat > $fs/usr/bin/leocad << EOF
pankso@10744 36 #!/bin/sh
pankso@10744 37 LEOCAD_LIB=/usr/share/leocad \\
pankso@10744 38 /usr/lib/leocad/leocad
pankso@10744 39 EOF
pascal@13796 40
pankso@10744 41 chmod +x $fs/usr/bin/leocad
pankso@10744 42 cp -a $install/* $fs
rcx@3709 43 }