wok-next annotate gpm/receipt @ rev 14302

Up: edbus (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:14:17 2013 +0200 (2013-04-07)
parents bdd79429958e
children 380ffe05937a
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@2193 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@12816 9 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
pankso@12816 10 WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
pankso@12921 11 HOST_ARCH="i486 arm"
pankso@12816 12
pankso@12816 13 DEPENDS="ncurses"
pascal@13947 14 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
pankso@12816 15
pankso@12816 16 # When cross compiling gawk and bison build system are used.
pankso@12816 17 case "$ARCH" in
pankso@12816 18 arm) BUILD_DEPENDS="" ;;
pankso@12816 19 esac
pascal@2193 20
pascal@2193 21 # Rules to configure and make the package.
pascal@2193 22 compile_rules()
pascal@2193 23 {
pascal@2193 24 cd $src
pascal@13946 25 ./autogen.sh
pascal@13946 26 ln -s headers/gpm.h src # ???
pankso@12816 27 ./configure \
pankso@12816 28 --prefix=/usr \
pankso@12816 29 --sysconfdir=/etc \
pankso@12816 30 $CONFIGURE_ARGS &&
pankso@12816 31 make && make install
pascal@2193 32 }
pascal@2193 33
pascal@2193 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2193 35 genpkg_rules()
pascal@2193 36 {
pascal@2193 37 mkdir -p $fs/usr/lib
pankso@12816 38 cp -a $install/usr/sbin $fs/usr
pankso@12816 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@13956 40 chmod a+x $fs/usr/lib/*
pankso@12816 41 cp -a $stuff/* $fs
pascal@2193 42 }
pascal@13945 43
pascal@13945 44 # Pre and post install commands for Tazpkg.
pascal@13945 45 pre_remove()
pascal@13945 46 {
pascal@13945 47 [ -n "$1" ] || /etc/init.d/gpm stop
pascal@13945 48 }
pascal@13945 49
pascal@13945 50 post_install()
pascal@13945 51 {
pascal@13945 52 [ -n "$1" ] || /etc/init.d/gpm start
pascal@13945 53 }