From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/bzip2/bzip2.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/bzip2/bzip2.xibuild (limited to 'repo/bzip2/bzip2.xibuild') diff --git a/repo/bzip2/bzip2.xibuild b/repo/bzip2/bzip2.xibuild new file mode 100644 index 0000000..d0d42f6 --- /dev/null +++ b/repo/bzip2/bzip2.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="musl sh" + +PKG_VER=1.0.8 +SOURCE=git://sourceware.org/git/bzip2.git +BRANCH=bzip2-$PKG_VER +DESC="a selection of programs for compressing and decompressing bzip2 files" + + +prepare () { + + # ensure symbolic links are relative + sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile +} + +build () { + make -f Makefile-libbz2_so + make clean + make +} + +package () { + make PREFIX=$PKG_DEST/usr install + + cp -a libbz2.so* $PKG_DEST/usr/lib + cp -a libbz2.so.$PKG_VER $PKG_DEST/usr/lib/libbz2.so + + cp bzip2-shared $PKG_DEST/usr/bin/bzip2 + for i in $PKG_DEST/usr/bin/bzcat $PKG_DEST/usr/bin/bunzip2; do + ln -sf bzip2 $i + done + + # remove a useless static library + rm -f $PKG_DEST/usr/lib/libbz2.a +} + -- cgit v1.2.1