wok view leocad/receipt @ rev 25646

salvador: 10% speedup for shrink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 21 10:02:07 2024 +0000 (10 months ago)
parents 00e3b45c063b
children
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="https://github.com/leozide/leocad/archive/refs/tags/v$VERSION.tar.gz"
13 DEPENDS="glibc-base gcc-lib-base glib libgio expat zlib leocad-pieces \
14 gtk+ atk cairo pixman pango jpeg libpng fontconfig freetype libxcb 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 libglu-mesa"
18 BUILD_DEPENDS="mesa-dev gtk+-dev glib-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/leozide/leocad/releases 2>/dev/null | \
24 sed '/tag\//!d;/continuous/d;s|.*tag/v*||;s|".*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl -lpng12"
31 make PREFIX="/usr" config &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/leocad \
39 $fs/usr/bin
41 # Create the shell script launcher
42 cat > $fs/usr/bin/leocad << EOF
43 #!/bin/sh
44 LEOCAD_LIB=/usr/share/leocad \\
45 /usr/lib/leocad/leocad
46 EOF
48 chmod +x $fs/usr/bin/leocad
49 cp -a $install/* $fs
50 }