summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/sys-fs/squashfs-tools/squashfs-tools-scm.exheres-060
2 files changed, 61 insertions, 0 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index cef306b..1f6f242 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -18,3 +18,4 @@ net-misc
net-print
app-backup
media-libs
+sys-fs
diff --git a/packages/sys-fs/squashfs-tools/squashfs-tools-scm.exheres-0 b/packages/sys-fs/squashfs-tools/squashfs-tools-scm.exheres-0
new file mode 100644
index 0000000..167db8f
--- /dev/null
+++ b/packages/sys-fs/squashfs-tools/squashfs-tools-scm.exheres-0
@@ -0,0 +1,60 @@
+# Copyright 2009-2017 Wulf C. Krueger <philantrop@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+SCM_REPOSITORY="https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git"
+
+require scm-git
+
+SUMMARY="The Squashfs tools for creating compressed filesystems"
+DESCRIPTION="
+Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib to
+compress files, inodes, and directories. All blocks are packed to minimize the
+data overhead, and block sizes of between 4K and 1M are supported. It is intended
+to be used for archival use, for live CDs, and for embedded systems where low
+overhead is needed. This package allows you to create such filesystems.
+"
+
+REMOTE_IDS+="freecode:squashfs"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="
+ xz [[ description = [ Support xz compressed images ] ]]
+ lzma [[ description = [ Support lzma compressed images ] ]]
+ lz4 [[ description = [ Support lz4 compressed images ] ]]
+ lzo [[ description = [ Support lzo compressed images ] ]]
+ zstd [[ description = [ Support zstd compressed images ] ]]
+ xattr
+"
+
+DEPENDENCIES="
+ build+run:
+ xz? ( app-arch/xz )
+ lzma? ( app-arch/xz )
+ lz4? ( app-arch/lz4 )
+ lzo? ( app-arch/lzo:2 )
+ zstd? ( app-arch/zstd )
+ xattr? ( sys-apps/attr )
+ run:
+ sys-libs/zlib
+"
+
+WORK=${WORK}/squashfs-tools
+
+DEFAULT_SRC_COMPILE_PARAMS=( CC="${CC}" LDFLAGS="${LDFLAGS}" )
+DEFAULT_SRC_INSTALL_PARAMS=( INSTALL_DIR="${IMAGE}"/usr/$(exhost --target)/bin )
+DEFAULT_SRC_INSTALL_EXTRA_PREFIXES=( ../ )
+DEFAULT_SRC_INSTALL_EXTRA_DOCS=( ACKNOWLEDGEMENTS PERFORMANCE.README )
+
+src_prepare() {
+ default
+
+ option xz && edo sed -i -e 's/#XZ_SUPPORT = 1/XZ_SUPPORT = 1/' Makefile
+ option lzma && edo sed -i -e 's/#LZMA_SUPPORT = 1/LZMA_SUPPORT = 1/' Makefile
+ option lz4 && edo sed -i -e 's/#LZ4_SUPPORT = 1/LZ4_SUPPORT = 1/' Makefile
+ option lzo && edo sed -i -e 's/#LZO_SUPPORT = 1/LZO_SUPPORT = 1/' Makefile
+ option zstd && edo sed -i -e 's/#ZSTD_SUPPORT = 1/ZSTD_SUPPORT = 1/' Makefile
+ option xattr && edo sed -i -e 's/#XATTR_SUPPORT = 1/XATTR_SUPPORT = 1/' Makefile
+}
+