wok-next annotate gpm/receipt @ rev 20486
outguess: fix install path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 10:46:52 2018 +0100 (2018-03-12) |
parents | 143225e97e0f |
children | 14cdf41afa35 |
rev | line source |
---|---|
pascal@20187 | 1 # SliTaz package receipt v2. |
pascal@2193 | 2 |
pascal@2193 | 3 PACKAGE="gpm" |
pascal@13946 | 4 VERSION="1.20.7" |
pascal@2193 | 5 CATEGORY="misc" |
pascal@2193 | 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 |
pascal@2193 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
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" |
pascal@20186 | 15 SPLIT="gpm gpm-dev gpm-extra" |
pankso@12816 | 16 |
pankso@12816 | 17 # When cross compiling gawk and bison build system are used. |
pankso@12816 | 18 case "$ARCH" in |
pankso@12816 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@12816 | 20 esac |
pascal@2193 | 21 |
pascal@2193 | 22 # Rules to configure and make the package. |
pascal@2193 | 23 compile_rules() |
pascal@2193 | 24 { |
pascal@13946 | 25 ./autogen.sh |
pascal@13946 | 26 ln -s headers/gpm.h src # ??? |
pankso@12816 | 27 ./configure \ |
pankso@12816 | 28 --prefix=/usr \ |
pankso@12816 | 29 --sysconfdir=/etc \ |
pankso@12816 | 30 $CONFIGURE_ARGS && |
pankso@12816 | 31 make && make install |
pascal@2193 | 32 } |
pascal@2193 | 33 |
pascal@2193 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2193 | 35 genpkg_rules() |
pascal@2193 | 36 { |
pascal@20186 | 37 case $PACKAGE in |
pascal@20186 | 38 gpm) |
pascal@20186 | 39 DEPENDS="ncurses" |
pascal@20186 | 40 mkdir -p $fs/usr/lib |
pascal@20186 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@20186 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20186 | 43 chmod a+x $fs/usr/lib/* |
pascal@20186 | 44 cp -a $stuff/* $fs |
pascal@20186 | 45 ;; |
pascal@20186 | 46 gpm-dev) |
pascal@20186 | 47 CAT="development|Mouse server for console, development files." |
pascal@20186 | 48 DEPENDS="gpm" |
pascal@20186 | 49 mkdir -p $fs/usr/lib |
pascal@20186 | 50 cp -a $install/usr/include $fs/usr |
pascal@20186 | 51 cp -a $install/usr/lib/*a $fs/usr/lib |
pascal@20186 | 52 ;; |
pascal@20186 | 53 gpm-extra) |
pascal@20186 | 54 CAT="misc|Mouse server for console, extra files." |
pascal@20186 | 55 DEPENDS="gpm" |
pascal@20186 | 56 mkdir -p $fs/usr |
pascal@20186 | 57 cp -a $install/usr/bin $fs/usr |
pascal@20186 | 58 ;; |
pascal@20186 | 59 esac |
pascal@2193 | 60 } |
pascal@13945 | 61 |
pascal@13945 | 62 # Pre and post install commands for Tazpkg. |
pascal@20186 | 63 pre_remove_gpm() |
pascal@13945 | 64 { |
pascal@13945 | 65 [ -n "$1" ] || /etc/init.d/gpm stop |
pascal@13945 | 66 } |
pascal@13945 | 67 |
pascal@20186 | 68 post_install_gpm() |
pascal@13945 | 69 { |
pascal@15660 | 70 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start |
pascal@13945 | 71 } |
pascal@20186 | 72 |
pascal@20186 | 73 # Just to be sure when cross-compiling. |
pascal@20186 | 74 testsuite_gpm_extra() |
pascal@20186 | 75 { |
pascal@20186 | 76 readelf -h $install/usr/bin/gpm-root |
pascal@20186 | 77 } |