wok-next view gpm/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents c4e53a39395a
children c99535b3ee41
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gpm"
4 VERSION="1.99.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_arm=" "
15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
16 SPLIT="gpm gpm-dev gpm-extra"
18 compile_rules() {
19 sed -i 's|-Werror||' Makefile.include.in
21 ./autogen.sh
22 ln -s headers/gpm.h src # ???
23 ./configure $CONFIGURE_ARGS &&
24 make && make install || return 1
26 # chmod a+x $install/usr/lib/*
27 cp -a $stuff/* $install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 gpm-extra)
33 copy bin/
34 CAT="misc|extra files"
35 DEPENDS="gpm"
36 ;;
37 gpm)
38 copy @std @rm
39 DEPENDS="ncurses"
40 ;;
41 gpm-dev)
42 copy @dev
43 ;;
44 esac
45 }
47 pre_remove_gpm() {
48 [ -n "$1" ] || /etc/init.d/gpm stop
49 }
51 post_install_gpm() {
52 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
53 }
55 # Just to be sure when cross-compiling.
56 testsuite_gpm_extra() {
57 readelf -h $install/usr/bin/gpm-root
58 }