wok view magicpoint/receipt @ rev 24590

syslinux: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:39:39 2022 +0000 (2022-02-28)
parents 91c4d11aaec4
children bc2b9d9bed6f
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://member.wide.ad.jp/wg/mgp/"
11 WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL"
13 DEPENDS="glibc-base expat zlib util-linux-uuid fontconfig freetype1 freetype \
14 giflib jpeg libpng tiff imlib xorg-libICE xorg-libSM xorg-libX11 \
15 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXmu \
16 xorg-libXrender xorg-libXt"
17 BUILD_DEPENDS="bison flex m4 gettext fontconfig-dev \
18 freetype1 freetype1-dev freetype-dev giflib-dev imlib-dev xorg-imake \
19 xorg-cf-files xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev \
20 xorg-libXrender-dev xorg-xproto xorg-xextproto"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 xmkmf &&
38 make -j1 Makefiles &&
39 make -j1 &&
40 make -j1 DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications
47 mkdir -p $install/usr/share/doc $install/usr/share/man
48 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp
49 cp -a $install/usr/bin $fs/usr
50 cp $src/*.man $install/usr/share/man/
51 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc
52 cp $src/USAGE $install/usr/share/doc
53 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT
54 [Desktop Entry]
55 Type=Application
56 Name=MagicPoint Presentation
57 Name[fr]=Présentation Magicpoint
58 Icon=x-office-presentation
59 Exec=mgp %f
60 MimeType=application/x-magicpoint
61 Categories=GTK;Office;Viewer;
62 EOT
63 }
65 post_install()
66 {
67 for i in magicpoint mgp ; do
68 grep -q application/x-$i $1/usr/share/applications/defaults.list ||
69 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list
70 done
71 }
73 post_remove()
74 {
75 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list
76 }