wok view leocad/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 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 }