... |
... |
@@ -5,28 +5,29 @@ |
5
|
5
|
# mar files. After code signing the dmg files, this script can be used
|
6
|
6
|
# to update the mar files.
|
7
|
7
|
#
|
8
|
|
-# A recent version of p7zip is required to extract the dmg files, such
|
9
|
|
-# as 15.14. The version in Debian Jessie (9.20) is not recent enough.
|
10
|
|
-# It is possible to install the p7zip-full package from Debian testing,
|
11
|
|
-# or build p7zip from sources:
|
12
|
|
-# $ p7zipdir=/some_directory/p7zip
|
|
8
|
+# A recent version of 7zip is required to extract the dmg files
|
|
9
|
+# compressed with lzma, such as 24.09. If your distribution does not
|
|
10
|
+# provide a recent version of 7zip, it is possible to build it from
|
|
11
|
+# sources:
|
|
12
|
+# $ p7zipdir=/some_directory/7zip
|
13
|
13
|
# $ mkdir $p7zipdir
|
14
|
14
|
# $ cd $p7zipdir
|
15
|
|
-# $ wget http://snapshot.debian.org/archive/debian/20160417T044336Z/pool/main/p/p7zip/p7zip_15.14.1%2Bdfsg.orig.tar.xz
|
16
|
|
-# $ echo 'e9e696e2fa77b00445a4d85fa07506debeae01943fdc1bee1472152d7d1386af p7zip_15.14.1+dfsg.orig.tar.xz' | sha256sum -c
|
17
|
|
-# $ wget http://snapshot.debian.org/archive/debian/20160515T161830Z/pool/main/p/p7zip/p7zip_15.14.1%2Bdfsg-2.debian.tar.xz
|
18
|
|
-# $ echo 'f4db6803535fc30b6ae9db5aabfd9f57a851c6773d72073847ec5e3731b7af37 p7zip_15.14.1+dfsg-2.debian.tar.xz' | sha256sum -c
|
19
|
|
-# $ tar xvf p7zip_15.14.1+dfsg-2.debian.tar.xz
|
20
|
|
-# $ tar xvf p7zip_15.14.1+dfsg.orig.tar.xz
|
21
|
|
-# $ cd p7zip_15.14.1/
|
22
|
|
-# $ for patch in $(cat ../debian/patches/series ); do patch -p1 < ../debian/patches/$patch; done
|
23
|
|
-# $ make 7z
|
24
|
|
-# $ mkdir $p7zipdir/bin
|
25
|
|
-# $ echo '#!/bin/sh' > $p7zipdir/bin/7z
|
26
|
|
-# $ echo "export LD_LIBRARY_PATH=$PWD/bin" >> $p7zipdir/bin/7z
|
27
|
|
-# $ echo "exec $PWD/bin/7z "'"$@"' >> $p7zipdir/bin/7z
|
28
|
|
-# $ chmod +x $p7zipdir/bin/7z
|
29
|
|
-# $ export "PATH=$p7zipdir/bin:$PATH"
|
|
15
|
+# $ wget http://deb.debian.org/debian/pool/main/7/7zip/7zip_24.09+dfsg.orig.tar.xz
|
|
16
|
+# $ echo 'bd5c61a206a83a5950410608df204550cab97e8609b62f9d7c368aaa682d649b 7zip_24.09+dfsg.orig.tar.xz' | sha256sum -c
|
|
17
|
+# $ wget http://deb.debian.org/debian/pool/main/7/7zip/7zip_24.09+dfsg-8.debian.tar.xz
|
|
18
|
+# $ echo '1615b151dcddc861fbebc2fd418fd857d0704b1951a6f01384066756ae0ef25b 7zip_24.09+dfsg-8.debian.tar.xz' | sha256sum -c
|
|
19
|
+# $ mkdir 7zip
|
|
20
|
+# $ cd 7zip
|
|
21
|
+# $ tar xvf ../7zip_24.09+dfsg.orig.tar.xz
|
|
22
|
+# $ tar xvf ../7zip_24.09+dfsg-8.debian.tar.xz
|
|
23
|
+# $ for patch in $(cat debian/patches/series ); do patch -p1 < debian/patches/$patch; done
|
|
24
|
+# $ make -C CPP/7zip/Bundles/Alone2 -j 2 -f makefile.gcc DISABLE_RAR=1
|
|
25
|
+# $ bindir=~/mbin
|
|
26
|
+# $ mkdir -p $bindir
|
|
27
|
+# $ echo '#!/bin/sh' > $bindir/7z
|
|
28
|
+# $ echo "exec $PWD/CPP/7zip/Bundles/Alone2/_o/7zz "'"$@"' >> $bindir/7z
|
|
29
|
+# $ chmod +x $bindir/7z
|
|
30
|
+# $ export "PATH=$bindir:$PATH"
|
30
|
31
|
|
31
|
32
|
use strict;
|
32
|
33
|
use Capture::Tiny qw(capture);
|