Skip to content

Commit

Permalink
Fixed bzip2
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksArt000 committed Nov 25, 2023
1 parent 2e2ec18 commit 65ea87c
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions testing/src/dependency-free/bzip2.ecmp
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,24 @@ curl
curl $URL | tar -xz

[install]
cd $NAME-$VERSION
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
# use our optimization
[ "${CFLAGS}" ] && sed -i "s|-O2|${CFLAGS}|g" Makefile
[ "${CFLAGS}" ] && sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so

make -f Makefile-libbz2_so
make clean
make
make PREFIX=$PKG/usr install
mkdir -pv $PKG/bin \
$PKG/lib \
$PKG/usr/lib
cp -v bzip2-shared $PKG/bin/bzip2
cp -av libbz2.so* $PKG/lib
ln -sv ../../lib/libbz2.so.1.0 $PKG/usr/lib/libbz2.so
rm -v $PKG/usr/bin/bunzip2 \
$PKG/usr/bin/bzcat \
$PKG/usr/bin/bzip2
ln -sv bzip2 $PKG/bin/bunzip2
ln -sv bzip2 $PKG/bin/bzcat
make install PREFIX=$BUILD_ROOT/usr
mkdir -pv $BUILD_ROOT/bin \
$BUILD_ROOT/lib \
$BUILD_ROOT/usr/lib
cp -v bzip2-shared $BUILD_ROOT/bin/bzip2
cp -av libbz2.so* $BUILD_ROOT/lib
ln -sv ../../lib/libbz2.so.1.0 $BUILD_ROOT/usr/lib/libbz2.so
rm -v $BUILD_ROOT/usr/bin/bunzip2 \
$BUILD_ROOT/usr/bin/bzcat \
$BUILD_ROOT/usr/bin/bzip2
ln -sv bzip2 $BUILD_ROOT/bin/bunzip2
ln -sv bzip2 $BUILD_ROOT/bin/bzcat

[locations]
bin/bunzip2
Expand All @@ -60,4 +58,4 @@ usr/share/man/man1/bzfgrep.1.gz
usr/share/man/man1/bzgrep.1.gz
usr/share/man/man1/bzip2.1.gz
usr/share/man/man1/bzless.1.gz
usr/share/man/man1/bzmore.1.gz
usr/share/man/man1/bzmore.1.gz

0 comments on commit 65ea87c

Please sign in to comment.