1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/vdr-xine/pkg_xine-lib_post.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License. A copy of the
11 # GNU General Public License can be found in the file COPYING.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 if xpatch="`match_source_file vdr-xine vdr-xine`"; then
15 echo_status "vdr: injecting patch"
16 hook_add prepatch 5 "rm -rf /tmp/xine-*; tar -C /tmp -v --wildcards $taropt $base/download/mirror/v/$xpatch */xine-lib.patch"
17 hook_add prepatch 6 "vdr_fix_and_inject_patch $xpatch"
19 echo_status "vdr: force autogen ..."
22 # removed on postinstall
23 hook_add postinstall 5 "rm -rf /tmp/${xpatch%.tbz2*}/"
25 vdr_fix_and_inject_patch() {
26 local patchfile=$( echo /tmp/xine-*/patches/xine-lib.patch )
27 var_append patchfiles ' ' "$patchfile"
30 abort "what? vdr xine-lib.patch not found!"