<commit_before>
source stage0n_variables
source stage01_variables
source stage02_variables
 
PKGNAME=screen
PKGVERSION=4.2.1

# Download:

[ -f ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz ] || wget -O ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz \
	ftp://ftp.gnu.org/gnu/screen/${PKGNAME}-${PKGVERSION}.tar.gz

# Prepare build:

workdir=`pwd `
mkdir -p ${CLFS}/build/${PKGNAME}-${PKGVERSION}
cd ${CLFS}/build/${PKGNAME}-${PKGVERSION}
tar xvzf ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz

# Patch

cd ${CLFS}/build/${PKGNAME}-${PKGVERSION}/${PKGNAME}-${PKGVERSION}
install -m 0755 "${workdir}/patches/screen-4.2.1.configure" configure

# Build and install

./configure --prefix=/ --without-debug --without-ada --enable-overwrite --host=${CLFS_TARGET} --without-cxx
make clean
make
make install DESTDIR=${CLFS}/cross-tools/${CLFS_TARGET}

# Clean up

cd ${CLFS}
rm -rf ${CLFS}/build/${PKGNAME}-${PKGVERSION}/${PKGNAME}-${PKGVERSION}<commit_msg>fix installation path<commit_after>
source stage0n_variables
source stage01_variables
source stage02_variables
 
PKGNAME=screen
PKGVERSION=4.2.1

# Download:

[ -f ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz ] || wget -O ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz \
	ftp://ftp.gnu.org/gnu/screen/${PKGNAME}-${PKGVERSION}.tar.gz

# Prepare build:

workdir=`pwd `
mkdir -p ${CLFS}/build/${PKGNAME}-${PKGVERSION}
cd ${CLFS}/build/${PKGNAME}-${PKGVERSION}
tar xvzf ${SRCDIR}/${PKGNAME}-${PKGVERSION}.tar.gz

# Patch

cd ${CLFS}/build/${PKGNAME}-${PKGVERSION}/${PKGNAME}-${PKGVERSION}
install -m 0755 "${workdir}/patches/screen-4.2.1.configure" configure

# Build and install

./configure --prefix=/usr --sysconfdir=/etc --without-debug --without-ada --enable-overwrite --host=${CLFS_TARGET} --without-cxx
make clean
make
make install DESTDIR=${CLFS}/targetfs
${CLFS}/cross-tools/bin/${CLFS_TARGET}-strip ${CLFS}/targetfs/usr/bin/screen

# Clean up

cd ${CLFS}
rm -rf ${CLFS}/build/${PKGNAME}-${PKGVERSION}/${PKGNAME}-${PKGVERSION}
{'fraction_non_alphanumeric': 0.20786516853932585, 'fraction_numerical': 0.015321756894790603, 'mean_word_length': 5.046296296296297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5359048', 'n_tokens_mistral': 767, 'n_tokens_neox': 758, 'n_words': 120}