1
0
Fork 0
frozenports/archivers/bzip2/SCHEMATIC

33 lines
1.3 KiB
Bash

#!/bin/sh
name="bzip2"
short_desc="Block-sorting file compressor"
desc="This is Bzip2/libbz2; a program and library for lossless, block-sorting data compression."
category="archivers"
version="1.0.8"
maintainer="ffqq@danwin1210.de"
www="https://sourceware.org/bzip2"
master_site="ftp://sourceware.org/pub/bzip2"
source_name="$name-$version.tar.gz"
license_logic="single" # accepted values: single, and, or
licenses=("bzip2")
build_dependencies=("lang/gcc" "devel/gmake")
run_dependencies=("system/glibc")
build_process() {
cd $name-$version || exit 1
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
make -j$(nproc) -f Makefile-libbz2_so
make clean
make -j$(nproc)
make PREFIX=$TAMANDUA_STAGE_DIR/usr install
cp -av libbz2.so.$version $TAMANDUA_STAGE_DIR/usr/lib
ln -sv /usr/lib/libbz2.so.$version $TAMANDUA_STAGE_DIR/usr/lib/libbz2.so
ln -sv /usr/lib/libbz2.so.$version $TAMANDUA_STAGE_DIR/usr/lib/libbz2.so.1.0
cp -v bzip2-shared $TAMANDUA_STAGE_DIR/usr/bin/bzip2
rm $TAMANDUA_STAGE_DIR/usr/bin/bzcat $TAMANDUA_STAGE_DIR/usr/bin/bunzip2
ln -s bzip2 $TAMANDUA_STAGE_DIR/usr/bin/bzcat
ln -s bzip2 $TAMANDUA_STAGE_DIR/usr/bin/bunzip2
rm -fv $TAMANDUA_STAGE_DIR/usr/lib/libbz2.a
}