3
0
Fork 0
forked from mirrors/nixpkgs

Updating unrar, and making its libunrar library work (needs -DSILENT, for example)

svn path=/nixpkgs/trunk/; revision=19309
This commit is contained in:
Lluís Batlle i Rossell 2010-01-08 20:04:23 +00:00
parent b80132502d
commit 863ccef2c4

View file

@ -1,13 +1,22 @@
{stdenv, fetchurl}: {stdenv, fetchurl}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "unrar-3.7.6"; name = "unrar-3.9.7";
src = fetchurl { src = fetchurl {
url = http://www.rarlab.com/rar/unrarsrc-3.7.6.tar.gz; url = http://www.rarlab.com/rar/unrarsrc-3.9.7.tar.gz;
sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls"; sha256 = "101w7fgfr5biyic8gj0km5aqi4xj8dikh4aa0rx0qvg8bjp19wb4";
}; };
buildPhase = "make -f makefile.unix unrar lib CXXFLAGS=\"-fPIC -O2\""; # Add a missing objects to the library
#patchPhase = ''
# sed -i 's/^\(LIB_OBJ=.*\)/\1 recvol.o rs.o/' makefile.unix
#'';
buildPhase = ''
make -f makefile.unix unrar
rm *.o
make -f makefile.unix lib CXXFLAGS="-fPIC -O2 -DSILENT";
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/lib mkdir -p $out/bin $out/lib