bzip fix and busybox update
This commit is contained in:
1 parent
3a6280c442
commit
8653ce2344
4 files changed
+34
-47
No files matched your search
@@ -0,0 +1,11 @@
|
|||||||
|
prefix=/usr
|
||||||
|
exec_prefix=/usr
|
||||||
|
bindir=${exec_prefix}/bin
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: bzip2
|
||||||
|
Description: A file compression library
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -L${libdir} -lbz2
|
||||||
|
Cflags: -I${includedir}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
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
|
|
||||||
+20
-28
@@ -7,7 +7,7 @@ description='lzma compression utilities and library'
|
|||||||
email='kurth4cker@tutanota.com'
|
email='kurth4cker@tutanota.com'
|
||||||
maintainer='kurth4cker'
|
maintainer='kurth4cker'
|
||||||
source=("https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
|
source=("https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
|
||||||
'makefile.patch')
|
'bzip2.pc.in')
|
||||||
md5sums=('67e051268d0c475ea773822f7500d0e5'
|
md5sums=('67e051268d0c475ea773822f7500d0e5'
|
||||||
'SKIP')
|
'SKIP')
|
||||||
group=(app.arch)
|
group=(app.arch)
|
||||||
@@ -15,35 +15,27 @@ arch=(x86_64)
|
|||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
mkdir -p $name-shared
|
# Generate relative symlinks
|
||||||
cp *.c *.h $name-shared
|
sed -i \
|
||||||
cp Makefile-libbz2_so $name-shared/Makefile
|
-e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
|
||||||
cd $name-shared
|
-e 's:ln -s -f $(PREFIX)/bin/:ln -s :' \
|
||||||
patch -Np1 < ../../makefile.patch
|
Makefile
|
||||||
|
|
||||||
|
# fixup broken version stuff
|
||||||
|
sed -i \
|
||||||
|
-e "s:1\.0\.4:$version:" \
|
||||||
|
bzip2.1 bzip2.txt Makefile-libbz2_so manual.*
|
||||||
}
|
}
|
||||||
build(){
|
build(){
|
||||||
export CFLAGS="-Winline -D_FILE_OFFSET_BITS=64 ${CFLAGS}"
|
make -f Makefile-libbz2_so all
|
||||||
make -e -j$(nproc) bzip2recover libbz2.a
|
make all
|
||||||
make -j$(nproc) -C $name-shared CFLAGS="-fpic -fPIC ${CFLAGS}"
|
|
||||||
}
|
}
|
||||||
package(){
|
package(){
|
||||||
install -dm755 ${DESTDIR}/usr/{bin,lib64/bzip2,include,share/man/man1}
|
make PREFIX="$DESTDIR"/usr install
|
||||||
|
install -D libbz2.so.$version "$DESTDIR"/usr/lib/libbz2.so.$version
|
||||||
install -m755 $name-shared/bzip2-shared "${DESTDIR}"/usr/bin/bzip2
|
ln -s libbz2.so.$version "$DESTDIR"/usr/lib/libbz2.so
|
||||||
install -m755 bzip2recover bzdiff bzgrep bzmore "${DESTDIR}"/usr/bin
|
ln -s libbz2.so.$version "$DESTDIR"/usr/lib/libbz2.so.${version%%.*}
|
||||||
ln -sf bzip2 "${DESTDIR}"/usr/bin/bunzip2
|
mkdir -p "$DESTDIR"/usr/lib/pkgconfig/
|
||||||
ln -sf bzip2 "${DESTDIR}"/usr/bin/bzcat
|
sed "s|@VERSION@|$version|" ../bzip2.pc.in \
|
||||||
|
> "$DESTDIR"/usr/lib/pkgconfig/bzip2.pc
|
||||||
install -m755 libbz2.a "${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/
|
|
||||||
|
|
||||||
install -m644 bzip2.1 "${DESTDIR}"/usr/share/man/man1/
|
|
||||||
ln -sf bzip2.1 "${DESTDIR}"/usr/share/man/man1/bunzip2.1
|
|
||||||
ln -sf bzip2.1 "${DESTDIR}"/usr/share/man/man1/bzcat.1
|
|
||||||
ln -sf bzip2.1 "${DESTDIR}"/usr/share/man/man1/bzip2recover.1
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
name=busybox
|
name=busybox
|
||||||
version=1.35.0
|
version=1.36.1
|
||||||
release=1
|
release=2
|
||||||
url='https://busybox.net'
|
url='https://busybox.net'
|
||||||
description='BusyBox is a software suite that provides several Unix utilities in a single executable file.'
|
description='BusyBox is a software suite that provides several Unix utilities in a single executable file.'
|
||||||
email='parduscix@yandex.ru'
|
email='parduscix@yandex.ru'
|
||||||
@@ -16,7 +16,7 @@ source=("https://busybox.net/downloads/busybox-$version.tar.bz2"
|
|||||||
"files/udhcpc.script"
|
"files/udhcpc.script"
|
||||||
"data-user.patch"
|
"data-user.patch"
|
||||||
)
|
)
|
||||||
md5sums=("585949b1dd4292b604b7d199866e9913"
|
md5sums=("0fc591bc9f4e365dfd9ade0014f32561"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
|
|||||||
Reference in new issue
Block a user