wok view xterm/receipt @ rev 16705

tazndis: tazndisbox depends on gtkdialog
author Richard Dunbar <mojo@slitaz.org>
date Wed May 28 10:36:19 2014 +0000 (2014-05-28)
parents 7bae09de1061
children aad65b6098e0
line source
1 # SliTaz package receipt.
3 PACKAGE="xterm"
4 VERSION="303"
5 CATEGORY="utilities"
6 SHORT_DESC="X Terminal emulator."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://invisible-island.net/xterm/"
11 WGET_URL="ftp://invisible-island.net/xterm/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="expat fontconfig freetype ncurses xorg-libXft xorg-libXt xorg-libXaw"
15 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev ncurses-dev \
16 xorg-libXft-dev xorg-libXt-dev xorg-libXaw-dev imagemagick libltdl"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev ncurses-dev \
21 xorg-libXft-dev xorg-libXt-dev xorg-libXaw-dev "
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --localstatedir=/var \
32 --with-app-defaults=/usr/share/X11/app-defaults \
33 --enable-wide-chars \
34 --enable-freetype \
35 --enable-doublechars \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
45 [ -x "/usr/bin/convert" ] &&
46 convert icons/xterm_32x32.xpm $DESTDIR/usr/share/pixmaps/xterm.png
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share $fs/usr
49 cp $src/xterm.desktop $DESTDIR/usr/share/applications
50 }
52 # One of the first X apps cross compiled. Be sure all went well
53 testsuite()
54 {
55 readelf -h $install/usr/bin/xterm
56 }