wok-6.x annotate xfig/receipt @ rev 25559

updated xfce4-ristretto 0.6.3 -> 0.8.5
author Hans-G?nter Theisgen
date Tue Apr 25 15:16:20 2023 +0100 (18 months ago)
parents 271622a4c4d7
children
rev   line source
pascal@11204 1 # SliTaz package receipt.
pascal@11204 2
pascal@11204 3 PACKAGE="xfig"
Hans-G?nter@24120 4 VERSION="3.2.8b"
pascal@11204 5 CATEGORY="x-window"
pascal@11204 6 SHORT_DESC="Vector graphics editor for X."
pascal@11204 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="MIT"
pascal@21799 9 WEB_SITE="https://www.xfig.org/"
Hans-G?nter@24120 10
Hans-G?nter@24121 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@24124 12 WGET_URL="$SF_MIRROR/mcj/$TARBALL"
Hans-G?nter@24124 13
pascal@11204 14 SUGGESTED="transfig"
Hans-G?nter@24120 15 DEPENDS="jpeg libpng xorg xorg-libXaw3d xorg-libXp"
Hans-G?nter@24124 16 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXaw3d-dev xorg-libXp"
pascal@11204 17
pascal@24125 18 # What is the latest version available today?
pascal@24125 19 current_version()
pascal@24125 20 {
pascal@24125 21 wget -O - https://sourceforge.net/projects/mcj/files/ 2>/dev/null | \
pascal@24125 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24125 23 }
pascal@24125 24
pascal@11204 25 # Rules to configure and make the package.
pascal@11204 26 compile_rules()
pascal@11204 27 {
Hans-G?nter@24120 28 # obsolete with 3.2.8b
Hans-G?nter@24120 29 # sed -i 's|/usr/local|/usr|;s|#define XAW3D|XCOMM &|' Imakefile
Hans-G?nter@24120 30 # xmkmf
Hans-G?nter@24122 31 ./configure \
Hans-G?nter@24120 32 --prefix=/usr \
Hans-G?nter@24120 33 $CONFIGURE_ARGS &&
pascal@11204 34 make &&
pascal@11204 35 make DESTDIR=$DESTDIR install
pascal@11204 36 }
pascal@11204 37
pascal@11204 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11204 39 genpkg_rules()
pascal@11204 40 {
Hans-G?nter@24124 41 mkdir -p $fs/usr/share/xfig
Hans-G?nter@24124 42 mkdir -p $fs/usr/share/X11
Hans-G?nter@24124 43
Hans-G?nter@24124 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24124 45 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@24124 46 cp -a $install/usr/share/pixmaps $fs/usr/share
Hans-G?nter@24124 47 cp -a $install/usr/share/xfig/CompKeyDB $fs/usr/share/xfig
Hans-G?nter@24124 48 cp -a $install/usr/share/X11/app-defaults $fs/usr/share/X11
Hans-G?nter@24120 49
Hans-G?nter@24120 50 sed -i 's/^Fig\*Font:.*/Fig*Font:\t\t\tfixed/' \
Hans-G?nter@24120 51 $fs/usr/share/X11/app-defaults/Fig
pascal@11204 52 }