wok-next view gpm/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 14cdf41afa35
children a3c581bf52b8
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.lzma"
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-extra gpm gpm-dev"
17 COOKOPTS="skip-log-errors"
19 compile_rules() {
20 sed -i 's|-Werror||' Makefile.include.in
22 ./autogen.sh
23 ln -s headers/gpm.h src # ???
24 ./configure $CONFIGURE_ARGS &&
25 make && make install || return 1
27 chmod a+x $install/usr/lib/*
28 install -Dm755 $stuff/etc/init.d/gpm $install/etc/init.d/gpm
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 gpm-extra)
34 copy bin/
35 CAT="misc|extra files"
36 DEPENDS="gpm"
37 ;;
38 gpm)
39 copy @std @rm
40 DEPENDS="ncurses"
41 ;;
42 gpm-dev)
43 copy @dev
44 ;;
45 esac
46 }
48 pre_remove_gpm() {
49 [ -n "$1" ] || /etc/init.d/gpm stop
50 }
52 post_install_gpm() {
53 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
54 }
56 # Just to be sure when cross-compiling.
57 testsuite() {
58 readelf -h $install/usr/bin/gpm-root
59 }