wok-6.x annotate gpm/receipt @ rev 16064

ARM: add a bunch of packages including Xterm
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 12 03:53:08 2014 +0100 (2014-03-12)
parents 8a5d0d5c5453
children a78610b2eb47
rev   line source
pascal@2193 1 # SliTaz package receipt.
pascal@2193 2
pascal@2193 3 PACKAGE="gpm"
pascal@13946 4 VERSION="1.20.7"
pascal@2193 5 CATEGORY="misc"
pascal@2193 6 SHORT_DESC="Mouse server for console."
pascal@2193 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@2193 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@12816 10 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
pankso@12816 11 WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
pankso@12921 12 HOST_ARCH="i486 arm"
pankso@12816 13
pankso@12816 14 DEPENDS="ncurses"
pascal@13947 15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
pankso@12816 16
pankso@12816 17 # When cross compiling gawk and bison build system are used.
pankso@12816 18 case "$ARCH" in
pankso@12816 19 arm) BUILD_DEPENDS="" ;;
pankso@12816 20 esac
pascal@2193 21
pascal@2193 22 # Rules to configure and make the package.
pascal@2193 23 compile_rules()
pascal@2193 24 {
pascal@2193 25 cd $src
pascal@13946 26 ./autogen.sh
pascal@13946 27 ln -s headers/gpm.h src # ???
pankso@12816 28 ./configure \
pankso@12816 29 --prefix=/usr \
pankso@12816 30 --sysconfdir=/etc \
pankso@12816 31 $CONFIGURE_ARGS &&
pankso@12816 32 make && make install
pascal@2193 33 }
pascal@2193 34
pascal@2193 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2193 36 genpkg_rules()
pascal@2193 37 {
pascal@2193 38 mkdir -p $fs/usr/lib
pankso@12816 39 cp -a $install/usr/sbin $fs/usr
pankso@12816 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@13956 41 chmod a+x $fs/usr/lib/*
pankso@12816 42 cp -a $stuff/* $fs
pascal@2193 43 }
pascal@13945 44
pascal@13945 45 # Pre and post install commands for Tazpkg.
pascal@13945 46 pre_remove()
pascal@13945 47 {
pascal@13945 48 [ -n "$1" ] || /etc/init.d/gpm stop
pascal@13945 49 }
pascal@13945 50
pascal@13945 51 post_install()
pascal@13945 52 {
pascal@15660 53 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
pascal@13945 54 }