wok-next annotate gpm/receipt @ rev 21087
Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 28 05:11:49 2018 +0200 (2018-12-28) |
parents | a3c581bf52b8 |
children |
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@20906 | 9 WEB_SITE="https://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 |
pascal@13947 | 14 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo" |
al@21020 | 15 SPLIT="$PACKAGE-extra $PACKAGE $PACKAGE-dev" |
al@20593 | 16 COOKOPTS="skip-log-errors" |
pankso@12816 | 17 |
al@20498 | 18 compile_rules() { |
al@20498 | 19 sed -i 's|-Werror||' Makefile.include.in |
pascal@2193 | 20 |
pascal@13946 | 21 ./autogen.sh |
pascal@13946 | 22 ln -s headers/gpm.h src # ??? |
al@21020 | 23 |
al@20498 | 24 ./configure $CONFIGURE_ARGS && |
al@21020 | 25 make && |
al@21020 | 26 make install || return 1 |
al@20498 | 27 |
al@20593 | 28 chmod a+x $install/usr/lib/* |
al@20593 | 29 install -Dm755 $stuff/etc/init.d/gpm $install/etc/init.d/gpm |
pascal@2193 | 30 } |
pascal@2193 | 31 |
al@20498 | 32 genpkg_rules() { |
pascal@20186 | 33 case $PACKAGE in |
al@20498 | 34 gpm-extra) |
al@20498 | 35 copy bin/ |
al@20498 | 36 CAT="misc|extra files" |
al@20498 | 37 DEPENDS="gpm" |
al@20498 | 38 ;; |
al@20498 | 39 gpm) |
al@20498 | 40 copy @std @rm |
al@20498 | 41 DEPENDS="ncurses" |
al@20498 | 42 ;; |
al@20498 | 43 gpm-dev) |
al@20498 | 44 copy @dev |
al@20498 | 45 ;; |
pascal@20186 | 46 esac |
pascal@2193 | 47 } |
pascal@13945 | 48 |
al@20498 | 49 pre_remove_gpm() { |
pascal@13945 | 50 [ -n "$1" ] || /etc/init.d/gpm stop |
pascal@13945 | 51 } |
pascal@13945 | 52 |
al@20498 | 53 post_install_gpm() { |
pascal@15660 | 54 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start |
pascal@13945 | 55 } |
pascal@20186 | 56 |
pascal@20186 | 57 # Just to be sure when cross-compiling. |
al@20593 | 58 testsuite() { |
pascal@20186 | 59 readelf -h $install/usr/bin/gpm-root |
pascal@20186 | 60 } |