wok annotate magicpoint/receipt @ rev 23915

Add 2048
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 18 16:53:56 2020 +0000 (2020-08-18)
parents a8df27023cb2
children 241fb98cab1c
rev   line source
rcx@3465 1 # SliTaz package receipt.
rcx@3465 2
rcx@3465 3 PACKAGE="magicpoint"
rcx@3465 4 VERSION="1.13a"
rcx@3465 5 CATEGORY="x-window"
rcx@3465 6 SHORT_DESC="An X11-based presentation tool."
rcx@3465 7 MAINTAINER="rcx@zoominternet.net"
pascal@15584 8 LICENSE="BSD"
pascal@15584 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15584 10 WEB_SITE="http://member.wide.ad.jp/wg/mgp/"
pascal@15584 11 WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL"
pascal@15584 12
pankso@12481 13 DEPENDS="glibc-base expat zlib util-linux-uuid fontconfig freetype1 freetype \
rcx@3465 14 giflib jpeg libpng tiff imlib xorg-libICE xorg-libSM xorg-libX11 \
rcx@3465 15 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXmu \
rcx@3465 16 xorg-libXrender xorg-libXt"
slaxemulator@9143 17 BUILD_DEPENDS="bison flex m4 gettext fontconfig-dev \
rcx@3465 18 freetype1 freetype1-dev freetype-dev giflib-dev imlib-dev xorg-imake \
rcx@3465 19 xorg-cf-files xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev \
rcx@3465 20 xorg-libXrender-dev xorg-xproto xorg-xextproto"
rcx@3465 21
rcx@3465 22 # Rules to configure and make the package.
rcx@3465 23 compile_rules()
rcx@3465 24 {
rcx@3465 25 ./configure \
rcx@3465 26 --prefix=/usr \
rcx@3465 27 --infodir=/usr/share/info \
rcx@3465 28 --mandir=/usr/share/man \
rcx@3465 29 $CONFIGURE_ARGS &&
rcx@3465 30 xmkmf &&
pascal@9154 31 make -j1 Makefiles &&
pascal@9154 32 make -j1 &&
pascal@15584 33 make -j1 DESTDIR=$DESTDIR install
rcx@3465 34 }
rcx@3465 35
rcx@3465 36 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3465 37 genpkg_rules()
rcx@3465 38 {
pascal@19562 39 mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications
pascal@19562 40 mkdir -p $install/usr/share/doc $install/usr/share/man
pascal@15584 41 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp
pascal@15584 42 cp -a $install/usr/bin $fs/usr
pascal@19561 43 cp $src/*.man $install/usr/share/man/
pascal@19561 44 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc
pascal@19561 45 cp $src/USAGE $install/usr/share/doc
pascal@19562 46 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT
pascal@19562 47 [Desktop Entry]
pascal@19562 48 Type=Application
pascal@19562 49 Name=MagicPoint Presentation
pascal@19562 50 Name[fr]=Présentation Magicpoint
pascal@19562 51 Icon=x-office-presentation
pascal@19562 52 Exec=mgp %f
pascal@19562 53 MimeType=application/x-magicpoint
pascal@19562 54 Categories=GTK;Office;Viewer;
pascal@19562 55 EOT
pascal@19562 56 }
pascal@19562 57
pascal@19562 58 post_install()
pascal@19562 59 {
pascal@19562 60 for i in magicpoint mgp ; do
pascal@19562 61 grep -q application/x-$i $1/usr/share/applications/defaults.list ||
pascal@19562 62 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list
pascal@19562 63 done
pascal@19562 64 }
pascal@19562 65
pascal@19562 66 post_remove()
pascal@19562 67 {
pascal@19562 68 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list
psychomaniak@18352 69 }