wok view TeXmacs/receipt @ rev 25760
created recipes for thunar-archive-plugin-lang and thunar-volman-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sun Sep 01 15:08:01 2024 +0100 (2 months ago) |
parents | 65b71231eeb9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="TeXmacs"
4 VERSION="1.0.7.8"
5 CATEGORY="office"
6 SHORT_DESC="The high quality of TeX with a wisiwyg editor"
7 MAINTAINER="slitaz@leledy.fr"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="https://www.texmacs.org/"
11 WGET_URL="ftp://ftp.texmacs.org/pub/$PACKAGE/targz/$TARBALL"
13 DEPENDS="ghostscript gmp guile freetype TeXmacs-windows-fonts"
14 # freetype and TeXmacs-windows-fonts avoid depending on TeX which is a *huge* system
15 BUILD_DEPENDS="xorg-libX11-dev gmp-dev guile-dev freetype-dev imlib2-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://ftp.texmacs.org/pub/$PACKAGE/targz/ 2>/dev/null | \
21 sed "/src.tar/!d;s|.*$PACKAGE-\\(.*\\).src.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mv $src-src $src 2> /dev/null
28 cd $src
29 if ! which imlib2-config ; then
30 sed -i -e 's|imlib2-config --cflags|pkg-config --cflags imlib2|' \
31 -e 's|imlib2-config --libs|pkg-config --libs imlib2|' configure*
32 fi
33 sed -i 's|.*include <util.h>|//&|' plugins/shell/src/tm_shell.cpp plugins/r/src/tm_r.c
34 ./configure \
35 --with-imlib2 \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 --libexecdir=/usr/lib \
40 $CONFIGURE_ARGS &&
41 make && make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib $fs/usr
50 cp -a $install/usr/share $fs/usr
51 }