wok-next view leocad/receipt @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
parents d5aab818505e
children 82b613cfd1e0
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.leocad.org/"
11 TARBALL="$PACKAGE-$VERSION-src.tgz"
12 WGET_URL="http://leocad.googlecode.com/files/$TARBALL" # FIXME
14 BUILD_DEPENDS="mesa-dev gtk2-dev glib-dev libjpeg-turbo-dev"
16 compile_rules() {
17 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl"
19 make PREFIX="/usr" config &&
20 make &&
21 make install
22 }
24 genpkg_rules() {
25 mkdir -p $fs/usr/lib/leocad \
26 $fs/usr/bin
28 # Create the shell script launcher
29 cat > $fs/usr/bin/leocad << EOF
30 #!/bin/sh
31 LEOCAD_LIB=/usr/share/leocad \\
32 /usr/lib/leocad/leocad
33 EOF
35 chmod +x $fs/usr/bin/leocad
36 cp -a $install/* $fs
37 DEPENDS="glibc-base gcc-lib-base glib expat zlib leocad-pieces gtk2 atk \
38 cairo pixman pango jpeg libpng fontconfig freetype libxcb \
39 xcb-util libx11 libxau libxcomposite libxcursor \
40 libxdamage libxdmcp libxext libxfixes libxft \
41 libxinerama libxrender mesa glu"
42 }