ports/contrib (3.5): squashfs-tools: fixed build with gcc 8, cleaned up, added lzo support
commit be5c35a5c1bb75795ac8452d12b9227622fa8634 Author: Matt Housh <jaeger@crux.ninja> Date: Tue Jul 30 11:04:00 2019 -0500 squashfs-tools: fixed build with gcc 8, cleaned up, added lzo support diff --git a/squashfs-tools/.signature b/squashfs-tools/.signature index 957e9bde..79bd7c2a 100644 --- a/squashfs-tools/.signature +++ b/squashfs-tools/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF34BR/5yiKaRlDx7oDzE8m3VgnunrNhOJOsHOkrnMhT8C0uiukJ3qfcjsoizm3m9rX/+L0E1cJgLXTMUyrmp6lwk= -SHA256 (Pkgfile) = 9820ebbec83c45f8badf44efd34ce8c34671644e68ddcf1a1fbce27e4235794c +RWSagIOpLGJF38RUd+AIYJ4mVcYH0wxSQHp0e5+LRR39LlG2EIQOI7Vj7LAm+CpoHBDHJbBJt0CCH9NiDrOd0yhrTowBiVBEIA4= +SHA256 (Pkgfile) = d5493dffdb54a15af74de7640f3378202c534820a556202d29d8ff9cc3e5804c SHA256 (.footprint) = ef8b3c9cd38c4fe9ee8f80af59cbd2282bccef8f8a2eb00332ed67fa8a24fb57 SHA256 (squashfs4.3.tar.gz) = 0d605512437b1eb800b4736791559295ee5f60177e102e4d4ccd0ee241a5f3f6 diff --git a/squashfs-tools/Pkgfile b/squashfs-tools/Pkgfile index 88fba44b..fa252843 100644 --- a/squashfs-tools/Pkgfile +++ b/squashfs-tools/Pkgfile @@ -1,17 +1,17 @@ # Description: SquashFS tools # URL: http://squashfs.sourceforge.net/ # Maintainer: Matt Housh, jaeger at morpheus dot net -# Depends on: xz - +# Depends on: gzip lzo xz + name=squashfs-tools version=4.3 -release=1 +release=2 source=(http://download.sourceforge.net/squashfs/squashfs${version}.tar.gz) build() { cd squashfs${version}/$name - sed -i -e 's/^#\(XZ_SUPPORT = 1\)/\1/' Makefile - make - install -D -m 0755 mksquashfs ${PKG}/sbin/mksquashfs - install -D -m 0755 unsquashfs ${PKG}/sbin/unsquashfs + sed -i -e '/^#include <ctype.h>/a #include <sys/sysmacros.h>' \ + {mk,un}squashfs.c + make GZIP_SUPPORT=1 LZO_SUPPORT=1 XZ_SUPPORT=1 + make install INSTALL_DIR=$PKG/sbin }
participants (1)
-
crux@crux.nu