You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.2 KiB

#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../vdr/pkg_xine-lib_post.conf
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
[ $SDECFG_PKG_VDR_XINE -ge 1 ] && {
if xpatch="`match_source_file vdr-xine vdr`"; then
echo_status "vdr: injecting patch ..."
hook_add prepatch 5 "rm -rf /tmp/xine-*; tar -C /tmp -v $taropt $base/download/mirror/v/$xpatch */xine-lib.patch"
hook_add prepatch 6 "vdr_fix_and_inject_patch $xpatch"
echo_status "vdr: force autogen ..."
autogen=1
# removed on postinstall
hook_add postinstall 5 "rm -rf /tmp/${xpatch%.tbz2*}/"
vdr_fix_and_inject_patch() {
local patchfile=$( echo /tmp/xine-*/patches/xine-lib.patch )
var_append patchfiles ' ' "$patchfile"
}
else
abort "what? vdr xine-lib.patch not found!"
fi
}