unrar: 5.9.2 -> 6.0.7
This commit is contained in:
parent
2aaf072d27
commit
4a719dfa45
@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "unrar";
|
||||
version = "5.9.2";
|
||||
version = "6.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.rarlab.com/rar/unrarsrc-${version}.tar.gz";
|
||||
sha256 = "19nsxdvf9ll99hvgzq6f89ymxhwki224lygjdabrg8ghikqvmlvk";
|
||||
sha256 = "sha256-pwKZQgBsvM7T87cyLsGXaD+Oe+QIlyyggJmxlsA49Rg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -17,21 +17,27 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
# `make {unrar,lib}` call `make clean` implicitly
|
||||
# move build results to another dir to avoid deleting them
|
||||
mkdir -p bin
|
||||
|
||||
make unrar
|
||||
make clean
|
||||
mv unrar bin
|
||||
|
||||
make lib
|
||||
mv libunrar.so bin
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
installPhase = ''
|
||||
install -Dt "$out/bin" unrar
|
||||
install -Dt "$out/bin" bin/unrar
|
||||
|
||||
mkdir -p $out/share/doc/unrar
|
||||
cp acknow.txt license.txt \
|
||||
$out/share/doc/unrar
|
||||
|
||||
install -Dm755 libunrar.so $out/lib/libunrar.so
|
||||
install -Dm755 bin/libunrar.so $out/lib/libunrar.so
|
||||
|
||||
install -Dt $dev/include/unrar/ *.hpp
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user