wok-next view gpm/receipt @ rev 19819
gstreamer0: update for the new bison version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 29 12:09:11 2017 +0200 (2017-07-29) |
parents | ed3853c1fdf0 |
children | 12ed7c1691a4 |
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 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="${WEB_SITE}archives/$TARBALL"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
17 SPLIT="gpm-extra"
19 # When cross compiling gawk and bison build system are used.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh
28 ln -s headers/gpm.h src # ???
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 chmod a+x $fs/usr/lib/*
43 cp -a $stuff/* $fs
44 }
46 # Pre and post install commands for Tazpkg.
47 pre_remove()
48 {
49 [ -n "$1" ] || /etc/init.d/gpm stop
50 }
52 post_install()
53 {
54 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
55 }