wok view gpm/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents a78610b2eb47
children
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
33 ./autogen.sh
34 ln -s headers/gpm.h src # ???
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $install/usr/sbin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 chmod a+x $fs/usr/lib/*
49 cp -a $stuff/* $fs
50 }
52 # Pre and post install commands for Tazpkg.
53 pre_remove()
54 {
55 [ -n "$1" ] || /etc/init.d/gpm stop
56 }
58 post_install()
59 {
60 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
61 }