vdrPlugins.markad: unstable -> 2.0.4

This commit is contained in:
Christian Kögler 2022-08-18 22:45:33 +02:00
parent e99522ee4c
commit 798cc46a6c

View File

@ -49,18 +49,19 @@ in {
markad = stdenv.mkDerivation rec {
pname = "vdr-markad";
version = "unstable-2017-03-13";
version = "2.0.4";
src = fetchgit {
url = "git://projects.vdr-developer.org/vdr-plugin-markad.git";
sha256 = "0jvy70r8bcmbs7zdqilfz019z5xkz5c6rs57h1dsgv8v6x86c2i4";
rev = "ea2e182ec798375f3830f8b794e7408576f139ad";
src = fetchFromGitHub {
repo = "vdr-plugin-markad";
owner = "jbrundiers";
sha256 = "sha256-Y4KsEtUq+KoUooXiw9O9RokBxNwWBkiGB31GncmHkYM=";
rev = "288e3dae93421b0176f4f62b68ea4b39d98e8793";
};
buildInputs = [ vdr libav ];
postPatch = ''
substituteInPlace command/Makefile --replace '$(DESTDIR)/usr' '$(DESTDIR)'
substituteInPlace command/Makefile --replace '/usr' ""
substituteInPlace plugin/markad.cpp \
--replace "/usr/bin" "$out/bin" \
@ -70,22 +71,19 @@ in {
--replace "/var/lib/markad" "$out/var/lib/markad"
'';
preBuild = ''
mkdir -p $out/lib/vdr
'';
buildFlags = [
"DESTDIR=$(out)"
"LIBDIR=$(out)/lib/vdr"
"LIBDIR=/lib/vdr"
"APIVERSION=${vdr.version}"
"VDRDIR=${vdr.dev}/include/vdr"
"LOCALEDIR=$(DESTDIR)/share/locale"
"LOCDIR=/share/locale"
];
installFlags = buildFlags;
meta = with lib; {
homepage = "https://projects.vdr-developer.org/projects/plg-markad";
description = "Ein Programm zum automatischen Setzen von Schnittmarken bei Werbeeinblendungen während einer Sendung.";
homepage = "https://github.com/jbrundiers/vdr-plugin-markad";
description = "MarkAd marks advertisements in VDR recordings.";
maintainers = [ maintainers.ck3d ];
license = licenses.gpl2;
platforms = [ "i686-linux" "x86_64-linux" ];