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