wok-current view leocad/receipt @ rev 25187
mencoder: reordered recipe
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 12 10:44:40 2022 +0100 (2022-07-12) |
parents | ede1d184d5c5 |
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 '/archive.*tar/!d;/continuous/d;s|.*/v*\(.*\).tar.*|\1|;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 }