wok view gpm/receipt @ rev 15180
mosh: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 20 11:57:56 2013 +0000 (2013-08-20) |
parents | 1e559c95d546 |
children | 8a5d0d5c5453 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gpm"
4 VERSION="1.20.7"
5 CATEGORY="misc"
6 SHORT_DESC="Mouse server for console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
11 WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
17 # When cross compiling gawk and bison build system are used.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./autogen.sh
27 ln -s headers/gpm.h src # ???
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 chmod a+x $fs/usr/lib/*
42 cp -a $stuff/* $fs
43 }
45 # Pre and post install commands for Tazpkg.
46 pre_remove()
47 {
48 [ -n "$1" ] || /etc/init.d/gpm stop
49 }
51 post_install()
52 {
53 [ -n "$1" ] || /etc/init.d/gpm start
54 }