File debian.rules of Package hdtv

#!/usr/bin/make -f

SHELL := /bin/bash

# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
DH_VERBOSE = 1

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

name = $(shell dpkg-parsechangelog | sed -n -e 's/^Source: //p')

buildroot = /usr/src/packages/BUILD/debian/$(name)
_bindir = /usr/bin
_docdir = /usr/share/doc
_datadir = /usr/share
_libdir = /usr/lib64

%:
	dh $@ --buildsystem=none

override_dh_auto_clean:
	dh_auto_clean
	sed -i "s|args\.rebuildusr\ or\ args\.rebuildsys:|args\.rebuildusr\ is\ not\ None\ or\ args.rebuildsys\ is\ not\ None:|g" hdtv/app.py

override_dh_auto_install:
	install -d                             $(buildroot)$(_libdir)/$(name)
	cp -r `ls -d * | grep -v debian`       $(buildroot)$(_libdir)/$(name)/
	. /usr/bin/thisroot.sh ; $(buildroot)$(_libdir)/$(name)/bin/$(name) --rebuild-sys
	install -d                             $(buildroot)$(_bindir)
	cd $(buildroot)$(_bindir) ; echo "#!/bin/sh" > $(name) ; echo "exec $(_libdir)/$(name)/bin/$(name) \"\$@\"" >> $(name) ; chmod 775 ./$(name)

#override_dh_shlibdeps:
#	. /opt/root/bin/thisroot.sh ; dh_shlibdeps
openSUSE Build Service is sponsored by