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.
gentoo-overlay/media-plugins/vdr-serial/vdr-serial-0.0.6a-r1.ebuild

39 lines
762 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit vdr-plugin-2
DESCRIPTION="VDR Plugin: attach some buttons with diodes to the serial port"
HOMEPAGE="http://www.lf-klueber.de/vdr.htm"
SRC_URI="http://www.lf-klueber.de/${P}.tgz"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
DEPEND="media-video/vdr"
pkg_setup() {
vdr-plugin-2_pkg_setup
if ! getent group uucp | grep -q vdr; then
echo
einfo "Add user 'vdr' to group 'uucp' for full user access to serial/ttyS* device"
echo
elog "User vdr added to group uucp"
gpasswd -a vdr uucp
fi
}
src_prepare() {
vdr-plugin-2_src_prepare
sed -i serial.c -e "s:RegisterI18n://RegisterI18n:"
cd "${S}"/tools
emake clean
}