wok-next view leocad/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | a3c581bf52b8 |
children | d5aab818505e |
line source
1 # SliTaz package receipt.
3 PACKAGE="leocad"
4 VERSION="0.76.2"
5 CATEGORY="games"
6 SHORT_DESC="A CAD program that uses toy bricks."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.tgz"
10 WEB_SITE="https://www.leocad.org/"
11 WGET_URL="http://leocad.googlecode.com/files/$TARBALL" # FIXME
13 DEPENDS="glibc-base gcc-lib-base glib expat zlib leocad-pieces \
14 gtk2 atk cairo xorg-pixman pango jpeg libpng16 fontconfig freetype xorg-libxcb xorg-xcb-util \
15 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
16 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
17 xorg-libXrender mesa glu"
18 BUILD_DEPENDS="mesa-dev gtk2-dev glib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl"
25 make PREFIX="/usr" config &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/leocad \
33 $fs/usr/bin
35 # Create the shell script launcher
36 cat > $fs/usr/bin/leocad << EOF
37 #!/bin/sh
38 LEOCAD_LIB=/usr/share/leocad \\
39 /usr/lib/leocad/leocad
40 EOF
42 chmod +x $fs/usr/bin/leocad
43 cp -a $install/* $fs
44 }