wok-next annotate screen/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children d457c4e37c1b
rev   line source
pascal@20287 1 # SliTaz package receipt v2.
pascal@901 2
pascal@901 3 PACKAGE="screen"
al@20647 4 VERSION="4.6.2"
pascal@901 5 CATEGORY="system-tools"
al@20647 6 SHORT_DESC="Terminal multiplexer"
pascal@901 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@20647 9 WEB_SITE="http://www.gnu.org/software/screen"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/screen.html"
al@20647 11
pascal@901 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@901 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@10341 14
pascal@20287 15 BUILD_DEPENDS="ncurses-extra pam-dev"
al@21020 16 SPLIT="$PACKAGE-terminfo $PACKAGE $PACKAGE-pam:pam"
pascal@901 17
al@20647 18 compile_rules() {
al@20647 19 case $SET in
al@20647 20 '') SET_ARGS='--disable-pam';;
al@20647 21 pam) SET_ARGS='--enable-pam';;
al@20647 22 esac
al@20292 23
al@20292 24 ./configure \
al@20647 25 --with-socket-dir=/run/screen \
al@20647 26 --with-pty-group=5 \
al@20292 27 --with-sys-screenrc=/etc/screenrc \
al@20647 28 $SET_ARGS \
al@20292 29 $CONFIGURE_ARGS &&
al@20647 30 sed -i -e "s|/usr/local/etc/screenrc|/etc/screenrc|" etc/* doc/* &&
pascal@17515 31 make &&
al@20647 32 make -j1 DESTDIR=$install install || return 1
al@20292 33
al@20647 34 install -Dm644 etc/etcscreenrc $install/etc/screenrc
al@20292 35
al@20647 36 case $SET in
al@20647 37 '')
al@20647 38 mkdir -p $install/usr/share/terminfo
al@20647 39 tic -o $install/usr/share/terminfo terminfo/screeninfo.src
al@20647 40 ;;
al@20647 41 esac
pascal@901 42 }
pascal@901 43
al@20647 44 genpkg_rules() {
pascal@20287 45 case $PACKAGE in
al@20647 46 screen-terminfo)
al@20647 47 copy terminfo/
al@20647 48 CAT="system-tools|terminfo files"
al@20647 49 ;;
al@20647 50 screen)
al@20647 51 copy @std @rm
al@20647 52 CONFIG_FILES="/etc/screenrc"
al@20647 53 SUGGESTED="screen-terminfo"
al@20647 54 DEPENDS="ncurses"
al@20647 55 ;;
al@20647 56 screen-pam)
al@20647 57 copy @std
al@20647 58 CONFIG_FILES="/etc/screenrc"
al@20647 59 SUGGESTED="screen-terminfo"
al@20647 60 DEPENDS="ncurses pam"
al@20292 61 CAT="system-tools|with PAM support"
al@20292 62 PROVIDE="screen:pam"
al@20647 63 ;;
pascal@20287 64 esac
pascal@901 65 }