Merge branch 'master' into 'master'

add libarchive - fix bzip2

See merge request sulix/packages/main!5
This commit is contained in:
3 files changed
+71 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
diff --git a/Makefile b/Makefile
index fb0f230..3c101bd 100644
--- a/Makefile
+++ b/Makefile
@@ -35,10 +35,8 @@ OBJS= blocksort.o \
bzlib.o
all: $(OBJS)
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
+ $(CC) -shared -o libbz2.so.1.0.8 $(OBJS)
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
- rm -f libbz2.so.1.0
- ln -s libbz2.so.1.0.8 libbz2.so.1.0
clean:
rm -f $(OBJS) bzip2.o libbz2.so.1.0.8 libbz2.so.1.0 bzip2-shared
+4 -1
View File
@@ -16,6 +16,8 @@ setup(){
mkdir -p $name-shared
cp *.c *.h $name-shared
cp Makefile-libbz2_so $name-shared/Makefile
cd $name-shared
patch -Np1 < ../../makefile.patch
}
build(){
export CFLAGS="-Winline -D_FILE_OFFSET_BITS=64 ${CFLAGS}"
@@ -31,9 +33,10 @@ package(){
ln -sf bzip2 "${DESTDIR}"/usr/bin/bzcat
install -m755 libbz2.a "${DESTDIR}"/usr/lib64/
install -m755 $name-shared/libbz2.so* "${DESTDIR}"/usr/lib64
install -m755 $name-shared/libbz2.so.${version} "${DESTDIR}"/usr/lib64
ln -s libbz2.so.$version "${DESTDIR}"/usr/lib64/libbz2.so
ln -s libbz2.so.$version "${DESTDIR}"/usr/lib64/libbz2.so.1
ln -s libbz2.so.$version "${DESTDIR}"/usr/lib64/libbz2.so.1.0
install -m644 bzlib.h "${DESTDIR}"/usr/include/
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/env bash
name=libarchive
version=3.6.1
release=1
url='https://www.libarchive.org'
description='Multi-format archive and compression library'
email='kurth4cker@tutanota.com'
maintainer='kurth4cker'
source=("https://www.libarchive.org/downloads/libarchive-${version}.tar.xz")
md5sums=('9465f7995649c9ea84854a7fd8c76f30')
license=('BSD')
group=(system.extra)
uses=(bzip2 lzma iconv acl)
uses_extra=(blake2 expat lz4 lzo nettle zstd)
depends=(openssl zlib)
bzip2_depends=(bzip2)
lzma_depends=(xz-utils)
acl_depends=(acl)
blake2_depends=(libb2)
expat_depends=(expat)
lz4_depends=(lz4)
lzo_depends=(lzo)
nettle_depends=(nettle)
zstd_depends=(zstd)
cd $name-$version
setup() {
./configure --prefix=/usr \
--libdir=/usr/lib64 \
--enable-static \
--enable-shared \
--enable-xattr \
$(use_opt iconv --with-iconv --without-iconv) \
$(use_opt bzip2 --with-bz2lib --without-bz2lib) \
$(use_opt lzma --with-lzma --without-lzma) \
$(use_opt acl --enable-acl --disable-acl) \
$(use_opt nettle --with-nettle --without-nettle) \
$(use_opt expat --without-xml2 --with-xml2) \
$(use_opt zstd --with-zstd --without-zstd) \
$(use_opt lz4 --with_lz4 --without-lz4) \
$(use_opt blake2 --with-libb2 --without-libb2) \
--without-cng
}
build() {
make -j$(nproc)
}
package() {
make -j$(nproc) install
}