wok-current annotate gpm/receipt @ rev 13947
gpm: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 29 18:27:09 2013 +0100 (2013-01-29) |
parents | 5ea9ca3cd82e |
children | 1e559c95d546 |
rev | line source |
---|---|
pascal@2193 | 1 # SliTaz package receipt. |
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@2193 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12816 | 9 WEB_SITE="http://www.nico.schottelius.org/software/gpm/" |
pankso@12816 | 10 WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL" |
pankso@12921 | 11 HOST_ARCH="i486 arm" |
pankso@12816 | 12 |
pankso@12816 | 13 DEPENDS="ncurses" |
pascal@13947 | 14 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo" |
pankso@12816 | 15 |
pankso@12816 | 16 # When cross compiling gawk and bison build system are used. |
pankso@12816 | 17 case "$ARCH" in |
pankso@12816 | 18 arm) BUILD_DEPENDS="" ;; |
pankso@12816 | 19 esac |
pascal@2193 | 20 |
pascal@2193 | 21 # Rules to configure and make the package. |
pascal@2193 | 22 compile_rules() |
pascal@2193 | 23 { |
pascal@2193 | 24 cd $src |
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@2193 | 37 mkdir -p $fs/usr/lib |
pankso@12816 | 38 cp -a $install/usr/sbin $fs/usr |
pankso@12816 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12816 | 40 cp -a $stuff/* $fs |
pascal@2193 | 41 } |
pascal@13945 | 42 |
pascal@13945 | 43 # Pre and post install commands for Tazpkg. |
pascal@13945 | 44 pre_remove() |
pascal@13945 | 45 { |
pascal@13945 | 46 [ -n "$1" ] || /etc/init.d/gpm stop |
pascal@13945 | 47 } |
pascal@13945 | 48 |
pascal@13945 | 49 post_install() |
pascal@13945 | 50 { |
pascal@13945 | 51 [ -n "$1" ] || /etc/init.d/gpm start |
pascal@13945 | 52 } |