wok-6.x annotate gpm/receipt @ rev 24451

updated cyrus-imapd and cyrus-imapd-dev (3.0.13 -> 3.4.3)
author Hans-G?nter Theisgen
date Tue Feb 15 14:10:08 2022 +0100 (2022-02-15)
parents a78610b2eb47
children
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@15000 8 LICENSE="GPL2"
pascal@2193 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20669 10 WEB_SITE="https://www.nico.schottelius.org/software/gpm/"
pascal@20669 11 WGET_URL="https://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
pankso@12921 12 HOST_ARCH="i486 arm"
pankso@12816 13
pankso@12816 14 DEPENDS="ncurses"
pascal@13947 15 BUILD_DEPENDS="gawk bison ncurses-dev automake autoconf libtool texinfo"
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@24445 22 # What is the latest version available today?
pascal@24445 23 current_version()
pascal@24445 24 {
pascal@24445 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 27 }
pascal@24445 28
pascal@2193 29 # Rules to configure and make the package.
pascal@2193 30 compile_rules()
pascal@2193 31 {
pascal@2193 32 cd $src
pascal@13946 33 ./autogen.sh
pascal@13946 34 ln -s headers/gpm.h src # ???
pankso@12816 35 ./configure \
pankso@12816 36 --prefix=/usr \
pankso@12816 37 --sysconfdir=/etc \
pankso@12816 38 $CONFIGURE_ARGS &&
pankso@12816 39 make && make install
pascal@2193 40 }
pascal@2193 41
pascal@2193 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2193 43 genpkg_rules()
pascal@2193 44 {
pascal@2193 45 mkdir -p $fs/usr/lib
pankso@12816 46 cp -a $install/usr/sbin $fs/usr
pankso@12816 47 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@13956 48 chmod a+x $fs/usr/lib/*
pankso@12816 49 cp -a $stuff/* $fs
pascal@2193 50 }
pascal@13945 51
pascal@13945 52 # Pre and post install commands for Tazpkg.
pascal@13945 53 pre_remove()
pascal@13945 54 {
pascal@13945 55 [ -n "$1" ] || /etc/init.d/gpm stop
pascal@13945 56 }
pascal@13945 57
pascal@13945 58 post_install()
pascal@13945 59 {
pascal@15660 60 [ -n "$1" -o -s /aufs-umount.sh ] || /etc/init.d/gpm start
pascal@13945 61 }