wok-next view xterm/receipt @ rev 16986

Add engrampa
author Yuri Pourre <yuripourre@gmail.com>
date Fri Aug 08 00:41:35 2014 -0300 (2014-08-08)
parents aad65b6098e0
children 7d1d61c783d6
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="ftp://invisible-island.net/$PACKAGE/$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 --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 }