2021-07-24 21:03:58 +02:00
|
|
|
# Copyright 2020-2021 Gentoo Authors
|
2021-07-01 11:02:55 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-07-24 03:49:41 +02:00
|
|
|
inherit meson systemd
|
|
|
|
|
2021-12-09 23:18:53 +01:00
|
|
|
COMMIT="a91bc71e23e5a8d5e17b32bb5fa8f3691251dfeb"
|
2021-07-01 11:02:55 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Daemon for managing the Quectel EG25 modem"
|
|
|
|
HOMEPAGE="https://gitlab.com/mobian1/devices/eg25-manager"
|
2021-07-24 03:49:41 +02:00
|
|
|
SRC_URI="https://gitlab.com/mobian1/devices/eg25-manager/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
2021-07-01 11:02:55 +02:00
|
|
|
|
|
|
|
KEYWORDS="~arm64"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
2021-07-24 03:49:41 +02:00
|
|
|
RDEPEND="
|
|
|
|
dev-libs/libgpiod
|
|
|
|
virtual/libusb:1
|
|
|
|
net-misc/modemmanager
|
|
|
|
"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
2021-07-01 11:02:55 +02:00
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
|
|
|
systemd_dounit "${FILESDIR}"/eg25-manager.service
|
2021-07-01 11:08:59 +02:00
|
|
|
insinto /etc/eg25-manager
|
|
|
|
newins "${FILESDIR}"/eg25-pinephone-1.0.toml pine64,pinephone-1.0.toml
|
|
|
|
newins "${FILESDIR}"/eg25-pinephone-1.1.toml pine64,pinephone-1.1.toml
|
|
|
|
newins "${FILESDIR}"/eg25-pinephone-1.2.toml pine64,pinephone-1.2.toml
|
2021-12-09 23:18:53 +01:00
|
|
|
newins "${FILESDIR}"/eg25-pinephone-pro.toml pine64,pinephone-pro.toml
|
2021-07-01 11:02:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
systemd_reenable --all eg25-manager
|
|
|
|
}
|