jhead: 2.87 -> 3.00
Also clean up the package quite a bit and add myself as maintainer.
This commit is contained in:
parent
b3b7f9f37f
commit
8296346207
|
@ -1,25 +1,38 @@
|
||||||
{stdenv, fetchurl}:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "jhead-2.87";
|
name = "jhead-${version}";
|
||||||
|
version = "3.00";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.sentex.net/~mwandel/jhead/jhead-2.87.tar.gz;
|
url = "http://www.sentex.net/~mwandel/jhead/${name}.tar.gz";
|
||||||
sha256 = "0vpp5jz49w5qzjzq3vllrbff7fr906jy8a8sq12yq8kw6qwbjjsl";
|
sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i s@/usr/bin@$out/bin@ makefile
|
substituteInPlace makefile \
|
||||||
|
--replace /usr/local/bin $out/bin
|
||||||
|
|
||||||
|
substituteInPlace jhead.c \
|
||||||
|
--replace "\" Compiled: \"__DATE__" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p \
|
||||||
|
$out/bin \
|
||||||
|
$out/man/man1 \
|
||||||
|
$out/share/doc/${name}
|
||||||
|
|
||||||
|
cp -v jhead $out/bin
|
||||||
|
cp -v jhead.1 $out/man/man1
|
||||||
|
cp -v *.txt $out/share/doc/${name}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.sentex.net/~mwandel/jhead/;
|
homepage = http://www.sentex.net/~mwandel/jhead/;
|
||||||
description = "Exif Jpeg header manipulation tool";
|
description = "Exif Jpeg header manipulation tool";
|
||||||
license = stdenv.lib.licenses.free;
|
license = licenses.publicDomain;
|
||||||
maintainers = with stdenv.lib.maintainers; [viric];
|
maintainers = with maintainers; [ viric rycee ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue