wok-next view gpm/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
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 }