wok-next view screen/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | 2ec88e5df2dd |
children | 1ff723a6455b |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="screen"
4 VERSION="4.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Terminal multiplexer."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/screen"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="ncurses-extra pam-dev"
14 SPLIT="screen screen-pam screen-terminfo"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cp -a $src $src-pam
21 ./configure \
22 --with-sys-screenrc=/etc/screenrc \
23 --disable-pam \
24 $CONFIGURE_ARGS &&
25 make &&
26 make -j1 DESTDIR=$DESTDIR install || return 1
28 cd $src-pam
29 ./configure \
30 --with-sys-screenrc=/etc/screenrc \
31 --enable-pam \
32 $CONFIGURE_ARGS &&
33 make &&
34 make -j1 DESTDIR=$DESTDIR-pam install || return 1
36 for dir in $DESTDIR $DESTDIR-pam ; do
37 mkdir -p $dir/usr/share/terminfo
38 tic -o $dir/usr/share/terminfo terminfo/screeninfo.src
39 mkdir -p $dir/etc
40 cp $src/etc/screenrc $dir/etc
41 done
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 screen|screen-pam)
49 CONFIG_FILES="/etc/screenrc"
50 SUGGESTED="screen-terminfo"
51 DEPENDS="elfutils"
52 if [ $PACKAGE == 'screen-pam' ]; then
53 DEPENDS="$DEPENDS pam"
54 CAT="system-tools|with PAM support"
55 PROVIDE="screen:pam"
56 install=$install-pam
57 fi
58 mkdir -p $fs/usr/bin $fs/usr/share
59 cp -a $install/etc $fs
60 cp -a $install/usr/bin/screen-$VERSION $fs/usr/bin/screen
61 cp -a $install/usr/share/screen $fs/usr/share
62 ;;
63 screen-terminfo)
64 CAT="system-tools|terminfo files"
65 mkdir -p $fs/usr/share
66 cp -a $install/usr/share/terminfo $fs/usr/share/
67 ;;
68 esac
69 }