wok-next view gpm/receipt @ rev 20486

outguess: fix install path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 10:46:52 2018 +0100 (2018-03-12)
parents 143225e97e0f
children 14cdf41afa35
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}archives/$TARBALL"
14 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
15 SPLIT="gpm gpm-dev gpm-extra"
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 ./autogen.sh
26 ln -s headers/gpm.h src # ???
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 gpm)
39 DEPENDS="ncurses"
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 chmod a+x $fs/usr/lib/*
44 cp -a $stuff/* $fs
45 ;;
46 gpm-dev)
47 CAT="development|Mouse server for console, development files."
48 DEPENDS="gpm"
49 mkdir -p $fs/usr/lib
50 cp -a $install/usr/include $fs/usr
51 cp -a $install/usr/lib/*a $fs/usr/lib
52 ;;
53 gpm-extra)
54 CAT="misc|Mouse server for console, extra files."
55 DEPENDS="gpm"
56 mkdir -p $fs/usr
57 cp -a $install/usr/bin $fs/usr
58 ;;
59 esac
60 }
62 # Pre and post install commands for Tazpkg.
63 pre_remove_gpm()
64 {
65 [ -n "$1" ] || /etc/init.d/gpm stop
66 }
68 post_install_gpm()
69 {
70 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
71 }
73 # Just to be sure when cross-compiling.
74 testsuite_gpm_extra()
75 {
76 readelf -h $install/usr/bin/gpm-root
77 }