wok-6.x annotate leocad/receipt @ rev 25559
updated xfce4-ristretto 0.6.3 -> 0.8.5
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 25 15:16:20 2023 +0100 (18 months ago) |
parents | ede1d184d5c5 |
children |
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" |
pascal@15379 | 8 LICENSE="GPL2" |
slaxemulator@11194 | 9 TARBALL="$PACKAGE-$VERSION-src.tgz" |
pascal@20674 | 10 WEB_SITE="https://www.leocad.org/" |
pascal@24978 | 11 WGET_URL="https://github.com/leozide/leocad/archive/refs/tags/v$VERSION.tar.gz" |
pankso@10744 | 12 |
rcx@3709 | 13 DEPENDS="glibc-base gcc-lib-base glib libgio expat zlib leocad-pieces \ |
rcx@3709 | 14 gtk+ atk cairo pixman pango jpeg libpng fontconfig freetype libxcb xcb-util \ |
rcx@3709 | 15 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ |
rcx@3709 | 16 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \ |
slaxemulator@9310 | 17 xorg-libXrender mesa libglu-mesa" |
pascal@12586 | 18 BUILD_DEPENDS="mesa-dev gtk+-dev glib-dev" |
rcx@3709 | 19 |
pascal@24447 | 20 # What is the latest version available today? |
pascal@24447 | 21 current_version() |
pascal@24447 | 22 { |
pascal@24447 | 23 wget -O - https://github.com/leozide/leocad/releases 2>/dev/null | \ |
pascal@24447 | 24 sed '/archive.*tar/!d;/continuous/d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24447 | 25 } |
pascal@24447 | 26 |
rcx@3709 | 27 # Rules to configure and make the package. |
rcx@3709 | 28 compile_rules() |
rcx@3709 | 29 { |
pascal@19716 | 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl -lpng12" |
slaxemulator@9310 | 31 make PREFIX="/usr" config && |
pankso@10744 | 32 make && make install |
rcx@3709 | 33 } |
rcx@3709 | 34 |
rcx@3709 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3709 | 36 genpkg_rules() |
rcx@3709 | 37 { |
pankso@10744 | 38 mkdir -p $fs/usr/lib/leocad \ |
pankso@10744 | 39 $fs/usr/bin |
slaxemulator@9310 | 40 |
pankso@10744 | 41 # Create the shell script launcher |
pankso@10744 | 42 cat > $fs/usr/bin/leocad << EOF |
pankso@10744 | 43 #!/bin/sh |
pankso@10744 | 44 LEOCAD_LIB=/usr/share/leocad \\ |
pankso@10744 | 45 /usr/lib/leocad/leocad |
pankso@10744 | 46 EOF |
pascal@13796 | 47 |
pankso@10744 | 48 chmod +x $fs/usr/bin/leocad |
pankso@10744 | 49 cp -a $install/* $fs |
rcx@3709 | 50 } |