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