wok-next view gpm/receipt @ rev 20342
gkII: tiny png patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 17 15:57:17 2017 +0100 (2017-11-17) |
parents | 12ed7c1691a4 |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
16 SPLIT="gpm gpm-dev gpm-extra"
18 # When cross compiling gawk and bison build system are used.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
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 case $PACKAGE in
39 gpm)
40 DEPENDS="ncurses"
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/sbin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 chmod a+x $fs/usr/lib/*
45 cp -a $stuff/* $fs
46 ;;
47 gpm-dev)
48 CAT="development|Mouse server for console, development files."
49 DEPENDS="gpm"
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/include $fs/usr
52 cp -a $install/usr/lib/*a $fs/usr/lib
53 ;;
54 gpm-extra)
55 CAT="misc|Mouse server for console, extra files."
56 DEPENDS="gpm"
57 mkdir -p $fs/usr
58 cp -a $install/usr/bin $fs/usr
59 ;;
60 esac
61 }
63 # Pre and post install commands for Tazpkg.
64 pre_remove_gpm()
65 {
66 [ -n "$1" ] || /etc/init.d/gpm stop
67 }
69 post_install_gpm()
70 {
71 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
72 }
74 # Just to be sure when cross-compiling.
75 testsuite_gpm_extra()
76 {
77 readelf -h $install/usr/bin/gpm-root
78 }