wok-next annotate gpm/receipt @ rev 20796

Add descriptions to the GNOME games
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 10 16:17:43 2018 +0300 (2018-06-10)
parents 14cdf41afa35
children a3c581bf52b8
rev   line source
pascal@20187 1 # SliTaz package receipt v2.
pascal@2193 2
pascal@2193 3 PACKAGE="gpm"
al@20593 4 VERSION="1.20.7"
pascal@2193 5 CATEGORY="misc"
al@20593 6 SHORT_DESC="Mouse server for console"
pascal@2193 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@19605 9 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
al@19605 10
al@20593 11 TARBALL="$PACKAGE-$VERSION.tar.lzma"
al@19605 12 WGET_URL="${WEB_SITE}archives/$TARBALL"
pankso@12816 13
al@20498 14 BUILD_DEPENDS_arm=" "
pascal@13947 15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
al@20593 16 SPLIT="gpm-extra gpm gpm-dev"
al@20593 17 COOKOPTS="skip-log-errors"
pankso@12816 18
al@20498 19 compile_rules() {
al@20498 20 sed -i 's|-Werror||' Makefile.include.in
pascal@2193 21
pascal@13946 22 ./autogen.sh
pascal@13946 23 ln -s headers/gpm.h src # ???
al@20498 24 ./configure $CONFIGURE_ARGS &&
al@20498 25 make && make install || return 1
al@20498 26
al@20593 27 chmod a+x $install/usr/lib/*
al@20593 28 install -Dm755 $stuff/etc/init.d/gpm $install/etc/init.d/gpm
pascal@2193 29 }
pascal@2193 30
al@20498 31 genpkg_rules() {
pascal@20186 32 case $PACKAGE in
al@20498 33 gpm-extra)
al@20498 34 copy bin/
al@20498 35 CAT="misc|extra files"
al@20498 36 DEPENDS="gpm"
al@20498 37 ;;
al@20498 38 gpm)
al@20498 39 copy @std @rm
al@20498 40 DEPENDS="ncurses"
al@20498 41 ;;
al@20498 42 gpm-dev)
al@20498 43 copy @dev
al@20498 44 ;;
pascal@20186 45 esac
pascal@2193 46 }
pascal@13945 47
al@20498 48 pre_remove_gpm() {
pascal@13945 49 [ -n "$1" ] || /etc/init.d/gpm stop
pascal@13945 50 }
pascal@13945 51
al@20498 52 post_install_gpm() {
pascal@15660 53 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
pascal@13945 54 }
pascal@20186 55
pascal@20186 56 # Just to be sure when cross-compiling.
al@20593 57 testsuite() {
pascal@20186 58 readelf -h $install/usr/bin/gpm-root
pascal@20186 59 }