wok-current view gpm/receipt @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (11 months ago)
parents af8d823a3077
children 5926178cd6fa
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.nico.schottelius.org/software/gpm/"
11 WGET_URL="https://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
17 # When cross compiling gawk and bison build system are used.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cd $src
34 # Patch for new gcc
35 patch -p1 < $stuff/gpm.gcc7.diff
37 ./autogen.sh
38 ln -s headers/gpm.h src # ???
39 ./configure \
40 --prefix=/usr \
41 --sysconfdir=/etc \
42 $CONFIGURE_ARGS &&
43 make && make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 cp -a $install/usr/sbin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 chmod a+x $fs/usr/lib/*
53 cp -a $stuff/* $fs
54 }
56 # Pre and post install commands for Tazpkg.
57 pre_remove()
58 {
59 [ -n "$1" ] || /etc/init.d/gpm stop
60 }
62 post_install()
63 {
64 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
65 }