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