unar: 1.10.1 -> 1.10.7
This commit is contained in:
parent
fce7562cf4
commit
991c4d48db
|
@ -1,52 +1,54 @@
|
||||||
{ stdenv, fetchurl, gnustep, unzip, bzip2, zlib, icu, openssl }:
|
{ stdenv, fetchFromGitHub, installShellFiles, gnustep, bzip2, zlib, icu, openssl, wavpack }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
pname = "unar";
|
pname = "unar";
|
||||||
|
version = "1.10.7";
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
src = fetchFromGitHub {
|
||||||
name = "${pname}-${version}";
|
owner = "MacPaw";
|
||||||
version = "1.10.1";
|
# the unar repo contains a shallow clone of both XADMaster and universal-detector
|
||||||
|
repo = "unar";
|
||||||
src = fetchurl {
|
rev = "v${version}";
|
||||||
url = "http://unarchiver.c3.cx/downloads/${pname}${version}_src.zip";
|
sha256 = "0p846q1l66k3rnd512sncp26zpv411b8ahi145sghfcsz9w8abc4";
|
||||||
sha256 = "0aq9zlar5vzr5qxphws8dm7ax60bsfsw77f4ciwa5dq5lla715j0";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gnustep.base bzip2 icu openssl zlib ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ gnustep.make unzip ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
for f in Makefile.linux ../UniversalDetector/Makefile.linux ; do
|
for f in Makefile.linux ../UniversalDetector/Makefile.linux ; do
|
||||||
substituteInPlace $f \
|
substituteInPlace $f \
|
||||||
--replace "CC = gcc" "CC=cc" \
|
--replace "= gcc" "=cc" \
|
||||||
--replace "CXX = g++" "CXX=c++" \
|
--replace "= g++" "=c++"
|
||||||
--replace "OBJCC = gcc" "OBJCC=cc" \
|
|
||||||
--replace "OBJCXX = g++" "OBJCXX=c++"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# we need to build inside this directory as well, so we have to make it writeable
|
||||||
|
chmod +w ../UniversalDetector -R
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ gnustep.base bzip2 icu openssl wavpack zlib ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ gnustep.make installShellFiles ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
makefile = "Makefile.linux";
|
makefile = "Makefile.linux";
|
||||||
|
|
||||||
sourceRoot = "./The Unarchiver/XADMaster";
|
sourceRoot = "./source/XADMaster";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 -t $out/bin lsar unar
|
install -Dm555 -t $out/bin lsar unar
|
||||||
install -Dm644 -t $out/share/man/man1 ../Extra/{lsar,unar}.1
|
for f in lsar unar; do
|
||||||
|
installManPage ./Extra/$f.?
|
||||||
mkdir -p $out/etc/bash_completion.d
|
installShellCompletion --bash --name $f ./Extra/$f.bash_completion
|
||||||
cp ../Extra/lsar.bash_completion $out/etc/bash_completion.d/lsar
|
done
|
||||||
cp ../Extra/unar.bash_completion $out/etc/bash_completion.d/unar
|
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://unarchiver.c3.cx/unarchiver";
|
homepage = "https://theunarchiver.com";
|
||||||
description = "An archive unpacker program";
|
description = "An archive unpacker program";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The Unarchiver is an archive unpacker program with support for the popular \
|
The Unarchiver is an archive unpacker program with support for the popular \
|
||||||
|
@ -55,7 +57,8 @@ in stdenv.mkDerivation rec {
|
||||||
Compact Pro, Packit, cpio, compress (.Z), ARJ, ARC, PAK, ACE, ZOO, LZH, \
|
Compact Pro, Packit, cpio, compress (.Z), ARJ, ARC, PAK, ACE, ZOO, LZH, \
|
||||||
ADF, DMS, LZX, PowerPacker, LBR, Squeeze, Crunch, and other old formats.
|
ADF, DMS, LZX, PowerPacker, LBR, Squeeze, Crunch, and other old formats.
|
||||||
'';
|
'';
|
||||||
license = with licenses; [ lgpl21Plus ];
|
license = licenses.lgpl21Plus;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue