diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
| commit | 46ca440e9d6cc606d9c3233021e32d24b25172cf (patch) | |
| tree | eeb573e47ac56498fbf74bda6d22fac47038ecab /repos/core/bzip2/build | |
| parent | 8c2e7bb570c11a51fdcecf7302af4058757d862c (diff) | |
| download | alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.tar.gz alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.zip | |
added repos
Diffstat (limited to 'repos/core/bzip2/build')
| -rw-r--r-- | repos/core/bzip2/build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/repos/core/bzip2/build b/repos/core/bzip2/build new file mode 100644 index 00000000..56de6170 --- /dev/null +++ b/repos/core/bzip2/build @@ -0,0 +1,21 @@ +sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile +sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile + +[ "${CFLAGS}" ] && sed -i "s|-O2|${CFLAGS}|g" Makefile +[ "${CFLAGS}" ] && sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so + +make -f Makefile-libbz2_so +mkdir -p $PKG/usr/lib +install libbz2.so.$version $PKG/usr/lib +ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so +ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0 + +make clean +make +make PREFIX=$PKG/usr install + +cp -v bzip2-shared $PKG/usr/bin/bzip2 +ln -sf bzip2 $PKG/usr/bin/bzcat +ln -sf bzip2 $PKG/usr/bin/bunzip2 + +install -Dm 0644 bzlib.h $PKG/usr/include/bzlib.h |