wok-6.x view magicpoint/receipt @ rev 20339

Up tazlito (511), slitaz-boot-scripts (451), zopfli (1.0.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 05 20:33:30 2018 +0200 (2018-06-05)
parents a8df27023cb2
children 241fb98cab1c
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 xmkmf &&
31 make -j1 Makefiles &&
32 make -j1 &&
33 make -j1 DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications
40 mkdir -p $install/usr/share/doc $install/usr/share/man
41 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp
42 cp -a $install/usr/bin $fs/usr
43 cp $src/*.man $install/usr/share/man/
44 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc
45 cp $src/USAGE $install/usr/share/doc
46 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT
47 [Desktop Entry]
48 Type=Application
49 Name=MagicPoint Presentation
50 Name[fr]=Présentation Magicpoint
51 Icon=x-office-presentation
52 Exec=mgp %f
53 MimeType=application/x-magicpoint
54 Categories=GTK;Office;Viewer;
55 EOT
56 }
58 post_install()
59 {
60 for i in magicpoint mgp ; do
61 grep -q application/x-$i $1/usr/share/applications/defaults.list ||
62 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list
63 done
64 }
66 post_remove()
67 {
68 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list
69 }