Date: Monday, December 10, 2018 @ 08:51:38
  Author: spupykin
Revision: 413878

archrelease: copy trunk to community-x86_64

Added:
  squashfs-tools/repos/community-x86_64/PKGBUILD
    (from rev 413877, squashfs-tools/trunk/PKGBUILD)
Deleted:
  squashfs-tools/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   82 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 39 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-12-10 08:51:26 UTC (rev 413877)
+++ PKGBUILD    2018-12-10 08:51:38 UTC (rev 413878)
@@ -1,43 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
-# Maintainer: Aaron Griffin <aa...@archlinux.org>
-# Original TU: Jeff Mickey <j...@codemac.net>
-# Contributor: ciccio.a
-
-pkgname=squashfs-tools
-pkgver=4.3
-pkgrel=7
-pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for 
Linux."
-url="http://squashfs.sourceforge.net";
-license=("GPL")
-arch=('x86_64')
-depends=('zlib' 'lzo' 'xz' 'lz4' 'zstd')
-source=("http://downloads.sourceforge.net/sourceforge/squashfs/squashfs${pkgver}.tar.gz";
-       
"https://sources.debian.org/data/main/s/squashfs-tools/1:4.3-6/debian/patches/0003-CVE-2015-4645_and_CVE-2015-4646.patch";
-       
"https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch";)
-sha512sums=('854ed7acc99920f24ecf11e0da807e5a2a162eeda55db971aba63a03f0da2c13b20ec0564a906c4b0e415bd8258b273a10208c7abc0704f2ceea773aa6148a79'
-            
'84bf4dc961387fd72a97229eda5432c2ba97211541131cb5a5032d7a807a675d5423473b9df2ad5341514dcb864daaeadca8ae9c8543eb3efb499f5baf838bb0'
-            
'c21466b2f0aa6d6ae65b3693148274250bc42d8e7ea5142d6d4048d663ff4343dc539822320cf732d88c5bac048766a9771e1d2b739b1176cb9fafa96c4d306a')
-
-prepare() {
-    cd "$srcdir"/squashfs${pkgver}/${pkgname}
-    patch -p2 -i ../../squashfs-tools-4.3-sysmacros.patch
-    patch -p2 -i ../../0003-CVE-2015-4645_and_CVE-2015-4646.patch
-}
-
-build() {
-    cd "$srcdir"/squashfs${pkgver}/${pkgname}
-    make \
-        GZIP_SUPPORT=1 \
-        XZ_SUPPORT=1 \
-        LZO_SUPPORT=1 \
-        LZMA_XZ_SUPPORT=1 \
-        LZ4_SUPPORT=1 \
-        ZSTD_SUPPORT=1 \
-        XATTR_SUPPORT=1
-}
-
-package() {
-    cd "$srcdir"/squashfs${pkgver}/${pkgname}
-    install -Dm755 mksquashfs "$pkgdir"/usr/bin/mksquashfs
-    install -m755 unsquashfs "$pkgdir"/usr/bin/unsquashfs
-}

Copied: squashfs-tools/repos/community-x86_64/PKGBUILD (from rev 413877, 
squashfs-tools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-12-10 08:51:38 UTC (rev 413878)
@@ -0,0 +1,39 @@
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Maintainer: Aaron Griffin <aa...@archlinux.org>
+# Original TU: Jeff Mickey <j...@codemac.net>
+# Contributor: ciccio.a
+
+pkgname=squashfs-tools
+pkgver=4.3
+pkgrel=8
+_commit=6e242dc95485ada8d1d0b3dd9346c5243d4a517f
+pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for 
Linux."
+url="https://github.com/plougher/squashfs-tools";
+license=("GPL")
+arch=('x86_64')
+depends=('zlib' 'lzo' 'xz' 'lz4' 'zstd')
+makedepends=('git')
+source=("git+https://github.com/plougher/squashfs-tools#commit=${_commit}";)
+sha256sums=('SKIP')
+
+prepare() {
+    cd "$srcdir"/${pkgname}/${pkgname}
+    sed -i '1,1i#include <sys/sysmacros.h>' mksquashfs.c unsquashfs.c
+}
+
+build() {
+    cd "$srcdir"/${pkgname}/${pkgname}
+    make \
+        GZIP_SUPPORT=1 \
+        XZ_SUPPORT=1 \
+        LZO_SUPPORT=1 \
+        LZMA_XZ_SUPPORT=1 \
+        LZ4_SUPPORT=1 \
+        ZSTD_SUPPORT=1 \
+        XATTR_SUPPORT=1
+}
+
+package() {
+    cd "$srcdir"/${pkgname}/${pkgname}
+    make install INSTALL_DIR="${pkgdir}"/usr/bin
+}

Reply via email to