MuPDF: Add an auto-updater script and update to the latest version.
This commit is contained in:
parent
cf4b0a1222
commit
64274e9981
@ -1,11 +1,12 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, freetype, libjpeg, jbig2dec, openjpeg
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, freetype, libjpeg, jbig2dec, openjpeg
|
||||||
, libX11, libXext }:
|
, libX11, libXext }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mupdf-1.4";
|
version = "1.5";
|
||||||
|
name = "mupdf-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://mupdf.com/download/archive/${name}-source.tar.gz";
|
url = "http://mupdf.com/download/archive/${name}-source.tar.gz";
|
||||||
sha256 = "08pc6fv42sb9k9dzjs8ph32nixzrzmr08yxh7arkpsdm42asp2q1";
|
sha256 = "0sl47zqf4c9fhs4h5zg046vixjmwgy4vhljhr5g4md733nash7z4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig zlib freetype libjpeg jbig2dec openjpeg libX11 libXext ];
|
buildInputs = [ pkgconfig zlib freetype libjpeg jbig2dec openjpeg libX11 libXext ];
|
||||||
@ -67,5 +68,6 @@ stdenv.mkDerivation rec {
|
|||||||
license = "GPLv3+";
|
license = "GPLv3+";
|
||||||
maintainers = with stdenv.lib.maintainers; [ viric ];
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
|
inherit version;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
7
pkgs/applications/misc/mupdf/default.upstream
Normal file
7
pkgs/applications/misc/mupdf/default.upstream
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
url http://mupdf.com/downloads/archive/
|
||||||
|
do_overwrite(){
|
||||||
|
ensure_hash
|
||||||
|
ensure_version
|
||||||
|
set_var_value version $CURRENT_VERSION
|
||||||
|
set_var_value sha256 $CURRENT_HASH
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user