wok-next view gpm/receipt @ rev 17002

linux-cloop, cloop-utils: add cloop_suspend & create_compressed_fs_fast
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 12 09:06:13 2014 +0200 (2014-08-12)
parents 8a5d0d5c5453
children 1b1490b81f6b
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" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
54 }