summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2014-03-26 22:22:13 +0100
committerMartin Väth <martin@mvath.de>2015-10-11 10:49:09 +0200
commitb00483ebfaf833e3b53d58c80f46538022fa9f8a (patch)
treef6d5c330e02cc5724d7ef397ba47560e79385153 /media-tv
parentBump duckduckgo, noscript (diff)
downloadmv-b00483ebfaf833e3b53d58c80f46538022fa9f8a.tar.gz
mv-b00483ebfaf833e3b53d58c80f46538022fa9f8a.tar.bz2
mv-b00483ebfaf833e3b53d58c80f46538022fa9f8a.zip
Bump video-mv; minor changes in sundtek-tv
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/sundtek-tv/sundtek-tv-20140304.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/media-tv/sundtek-tv/sundtek-tv-20140304.ebuild b/media-tv/sundtek-tv/sundtek-tv-20140304.ebuild
index 35f715a7..246dc293 100644
--- a/media-tv/sundtek-tv/sundtek-tv-20140304.ebuild
+++ b/media-tv/sundtek-tv/sundtek-tv-20140304.ebuild
@@ -87,13 +87,16 @@ my_movlibdir() {
src_prepare() {
local mybinprefix mylibdir myinclude myinclsundtek mysystemd \
- myudev mypkgconfig mylirc
+ myudev mypkgconfig mylirc myusr
if ${keep_original}
then mylibdir="opt/lib"
+ myinclude="opt/include"
+ myusr=
else mylibdir="usr/$(get_libdir)"
+ myinclude="usr/include"
+ myusr="usr"
fi
mybinprefix="opt"
- myinclude="usr/include"
mypkgconfig="usr/share/pkgconfig"
myinclsundtek="${myinclude}/sundtek"
myudev="lib/udev"
@@ -105,12 +108,12 @@ src_prepare() {
pax-mark e opt/bin/mediaclient
fi
mv opt 1 || die
- mkdir -p "${mybinprefix}" lib "${myinclude}" "${mypkgconfig}" "${mylirc}" \
+ mkdir -p ${myusr} "${mybinprefix}" lib "${mypkgconfig}" "${mylirc}" \
1/lib/pm-utils || die
mv 1/bin "${mybinprefix}" || die
${keep_original} || mv 1/lib/pm 1/lib/pm-utils/sleep.d || die
mv 1/lib "${mylibdir}" || die
- ${keep_original} || mv 1/include "${myinclude}" || die
+ mv 1/include "${myinclude}" || die
# The systemd unit need only be patched if PAX flags are not properly set
: sed -i -e 's/^\(\(Exec\(Start\|Stop\)\|Type\)=\)/#\1/' \
-e '/^#ExecStart=/iExecStart=/opt/bin/mediasrv --pluginpath /opt/bin' \
@@ -159,7 +162,7 @@ src_install() {
}
pkg_postinst() {
- false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" ||
+ false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \
elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv"
einfo "adding root to the audio group."
usermod -aG audio root || {