Debian package fixes (#15081) ##build

* Use xz instead of gzip
This commit is contained in:
Gordon M 2019-09-20 11:25:26 +01:00 committed by radare
parent cc4af9869f
commit ca1eddb22d
5 changed files with 15 additions and 11 deletions

View File

@ -5,6 +5,10 @@ if [ -z "${ARCH}" ]; then
ARCH=`uname -m`
fi
if [ "${ARCH}" = "x86_64" ]; then
ARCH=amd64
fi
echo "[debian] preparing radare2 package..."
PKGDIR=sys/debian/radare2/root
DEVDIR=sys/debian/radare2-dev/root
@ -15,9 +19,15 @@ mv "${PKGDIR}/usr/include/"* "${DEVDIR}/usr/include"
mkdir -p "${DEVDIR}/usr/lib"
mv "${PKGDIR}/usr/lib/"lib*a "${DEVDIR}/usr/lib"
mv "${PKGDIR}/usr/lib/pkgconfig" "${DEVDIR}/usr/lib"
for a in ${PKGDIR}/usr/bin/* ; do
echo "[debian] strip $a"
strip -s "$a" 2> /dev/null || strip "$a" 2>/dev/null
strip --strip-all "$a" 2> /dev/null || true
done
for a in ${PKGDIR}/usr/lib/libr*.so.* ; do
echo "[debian] strip $a"
strip --strip-unneeded "$a" 2> /dev/null || true
done
echo "[debian] building radare2 package..."

View File

@ -1,4 +0,0 @@
ARCH=$(shell uname -m)
ifeq ($(ARCH),x86_64)
ARCH=amd64
endif

View File

@ -79,7 +79,7 @@ endif
#endif
# Make md5sums.
cd ${PACKAGE_DIR}/data && find . -type f -exec ${MD5SUM} {} \; \
| sed -e 's| \./||' \
| sed -e 's| \./| |' \
> $@/md5sums
${PACKAGE_DIR}/debian-binary:
@ -93,16 +93,16 @@ ${PACKAGE_DIR}/build: ${PACKAGE_DIR}/debian-binary ${PACKAGE_DIR}/control \
rm -rf $@
mkdir $@
cp ${PACKAGE_DIR}/debian-binary $@/
cd ${PACKAGE_DIR}/control && tar czvf $@/control.tar.gz *
cd ${PACKAGE_DIR}/control && tar cJvf $@/control.tar.xz *
cd ${PACKAGE_DIR}/data && \
COPY_EXTENDED_ATTRIBUTES_DISABLE=true \
COPYFILE_DISABLE=true \
tar cpzvf $@/data.tar.gz ./*
tar cpJvf $@/data.tar.xz ./*
# Convert GNU ar to BSD ar that debian requires.
# Note: Order of files within ar archive is important!
${PACKAGE_DIR}/${PACKAGE}_${VERSION}_${ARCH}.deb: ${PACKAGE_DIR}/build
ar -rc $@ $</debian-binary $</control.tar.gz $</data.tar.gz
ar -rc $@ $</debian-binary $</control.tar.xz $</data.tar.xz
#sed -e 's|^\([^/]\+\)/ \(.*\)|\1 \2|g' $@tmp > $@fail
#rm -f $@tmp
#mv $@fail $@

View File

@ -4,4 +4,3 @@ PRIORITY=optional
MAINTAINER=pancake <pancake@nopcode.org>
include ../../../config-user.mk
include ../arch.mk

View File

@ -4,4 +4,3 @@ PRIORITY=optional
MAINTAINER=pancake <pancake@nopcode.org>
include ../../../config-user.mk
include ../arch.mk