2013-11-20 21:18:37 +01:00

67 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# This is a buildpkg build.sh script
# build.sh helper functions
. ${BUILDPKG_SCRIPTS}/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=screen
version=4.0.3
pkgver=2
source[0]=http://ftp.uni-erlangen.de/pub/utilities/screen/$topdir-$version.tar.gz
# If there are no patches, simply comment this
patch[0]=screen-4.0.2-makefile-madness.diff
# Source function library
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
# Global settings
configure_args+=(--enable-colors256)
reg prep
prep()
{
generic_prep
}
reg build
build()
{
generic_build
}
reg install
install()
{
generic_install DESTDIR
setdir source
${__cp} terminfo/screeninfo.src $stagedir$prefix/share/$topdir
${__mkdir} -p $stagedir$prefix/etc
${__cp} etc/etcscreenrc $stagedir$prefix/etc/screenrc
# Add two useful hacks to screenrc
cat << EOF >> $stagedir$prefix/etc/screenrc
# special xterm hardstatus: use the window title.
termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
hardstatus string "[screen %n%?: %t%?] %h"
EOF
doc NEWS README doc/README.DOTSCREEN doc/FAQ
}
reg pack
pack()
{
generic_pack
}
reg distclean
distclean()
{
clean distclean
}
###################################################
# No need to look below here
###################################################
build_sh $*