wok view magicpoint/receipt @ rev 25311

updated slurm (0.4.3 -> 0.4.4)
author Hans-G?nter Theisgen
date Wed Jul 20 17:20:43 2022 +0100 (2022-07-20)
parents bc2b9d9bed6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="magicpoint"
4 VERSION="1.13a"
5 CATEGORY="x-window"
6 SHORT_DESC="An X11-based presentation tool."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="BSD"
9 WEB_SITE="http://member.wide.ad.jp/wg/mgp/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL"
14 DEPENDS="expat fontconfig freetype freetype1 giflib glibc-base imlib
15 jpeg libpng tiff util-linux-uuid xorg-libICE xorg-libSM
16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft
17 xorg-libXmu xorg-libXrender xorg-libXt zlib"
18 BUILD_DEPENDS="bison flex fontconfig-dev freetype-dev freetype1
19 freetype1-dev gettext giflib-dev imlib-dev m4 xorg-cf-files
20 xorg-imake xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev
21 xorg-libXrender-dev xorg-xextproto xorg-xproto"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - $WEB_SITE 2>/dev/null | \
27 sed '/magicpoint-[0-9]/!d;s|.*magicpoint-||;s|.tar.*||'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 xmkmf &&
39 make Makefiles &&
40 # because of altered syntax for ar in binutils-2.37:
41 sed -i 's|ar clq|ar cq|' \
42 Makefile \
43 image/Makefile \
44 sample/Makefile \
45 contrib/Makefile \
46 contrib/xwintoppm/Makefile &&
47 make -j 1 &&
48 make install DESTDIR=$DESTDIR
49 # Do not remove -j 1 !
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib/X11/mgp
56 mkdir -p $fs/usr/share/applications
57 mkdir -p $install/usr/share/doc
58 mkdir -p $install/usr/share/man
60 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp
61 cp -a $install/usr/bin $fs/usr
62 cp $src/*.man $install/usr/share/man/
63 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc
64 cp $src/USAGE $install/usr/share/doc
65 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT
66 [Desktop Entry]
67 Type=Application
68 Name=MagicPoint Presentation
69 Name[de]=MagicPoint Präsentation
70 Name[fr]=Présentation Magicpoint
71 Icon=x-office-presentation
72 Exec=mgp %f
73 MimeType=application/x-magicpoint
74 Categories=GTK;Office;Viewer;
75 EOT
76 }
78 post_install()
79 {
80 for i in magicpoint mgp
81 do
82 grep -q application/x-$i $1/usr/share/applications/defaults.list ||
83 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list
84 done
85 }
87 post_remove()
88 {
89 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list
90 }