wok-current annotate magicpoint/receipt @ rev 24525
Up libav (0.6.6 -> 12.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 22 16:15:28 2022 +0000 (2022-02-22) |
parents | 91c4d11aaec4 |
children | bc2b9d9bed6f |
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 |
pascal@24453 | 22 # What is the latest version available today? |
pascal@24453 | 23 current_version() |
pascal@24453 | 24 { |
pascal@24453 | 25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 27 } |
pascal@24453 | 28 |
rcx@3465 | 29 # Rules to configure and make the package. |
rcx@3465 | 30 compile_rules() |
rcx@3465 | 31 { |
rcx@3465 | 32 ./configure \ |
rcx@3465 | 33 --prefix=/usr \ |
rcx@3465 | 34 --infodir=/usr/share/info \ |
rcx@3465 | 35 --mandir=/usr/share/man \ |
rcx@3465 | 36 $CONFIGURE_ARGS && |
rcx@3465 | 37 xmkmf && |
pascal@9154 | 38 make -j1 Makefiles && |
pascal@9154 | 39 make -j1 && |
pascal@15584 | 40 make -j1 DESTDIR=$DESTDIR install |
rcx@3465 | 41 } |
rcx@3465 | 42 |
rcx@3465 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3465 | 44 genpkg_rules() |
rcx@3465 | 45 { |
pascal@19562 | 46 mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications |
pascal@19562 | 47 mkdir -p $install/usr/share/doc $install/usr/share/man |
pascal@15584 | 48 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp |
pascal@15584 | 49 cp -a $install/usr/bin $fs/usr |
pascal@19561 | 50 cp $src/*.man $install/usr/share/man/ |
pascal@19561 | 51 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc |
pascal@19561 | 52 cp $src/USAGE $install/usr/share/doc |
pascal@19562 | 53 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT |
pascal@19562 | 54 [Desktop Entry] |
pascal@19562 | 55 Type=Application |
pascal@19562 | 56 Name=MagicPoint Presentation |
pascal@19562 | 57 Name[fr]=Présentation Magicpoint |
pascal@19562 | 58 Icon=x-office-presentation |
pascal@19562 | 59 Exec=mgp %f |
pascal@19562 | 60 MimeType=application/x-magicpoint |
pascal@19562 | 61 Categories=GTK;Office;Viewer; |
pascal@19562 | 62 EOT |
pascal@19562 | 63 } |
pascal@19562 | 64 |
pascal@19562 | 65 post_install() |
pascal@19562 | 66 { |
pascal@19562 | 67 for i in magicpoint mgp ; do |
pascal@19562 | 68 grep -q application/x-$i $1/usr/share/applications/defaults.list || |
pascal@19562 | 69 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list |
pascal@19562 | 70 done |
pascal@19562 | 71 } |
pascal@19562 | 72 |
pascal@19562 | 73 post_remove() |
pascal@19562 | 74 { |
pascal@19562 | 75 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list |
psychomaniak@18352 | 76 } |