wok-current view xterm/receipt @ rev 16936
Up xterm (309), enable 256-color: package 20kB even less!
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Jul 22 11:57:18 2014 +0200 (2014-07-22) |
parents | abd8c5581357 |
children | a37b86ced53b |
line source
1 # SliTaz package receipt.
3 PACKAGE="xterm"
4 VERSION="309"
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="http://invisible-island.net/datafiles/release/$PACKAGE.tar.gz"
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 --enable-256-color \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
46 [ -x "/usr/bin/convert" ] &&
47 convert icons/xterm_32x32.xpm $DESTDIR/usr/share/pixmaps/xterm.png
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share $fs/usr
50 cp $src/xterm.desktop $DESTDIR/usr/share/applications
51 }
53 # One of the first X apps cross compiled. Be sure all went well
54 testsuite()
55 {
56 readelf -h $install/usr/bin/xterm
57 }