2022-01-19 14:29:33 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-10-03 17:58:12 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit systemd udev
|
|
|
|
|
|
|
|
DESCRIPTION="Meta-package for installing phosh on pinephone"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~arm64"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
app-mobilephone/pinephone-modem-scripts
|
|
|
|
app-mobilephone/usb-tethering
|
|
|
|
gnome-extra/iio-sensor-proxy
|
|
|
|
media-libs/alsa-ucm-pinephone
|
|
|
|
media-tv/v4l-utils
|
|
|
|
net-misc/eg25-manager
|
|
|
|
x11-themes/sound-theme-librem5
|
2021-10-04 09:36:29 +02:00
|
|
|
app-misc/geoclue
|
2021-10-03 17:58:12 +02:00
|
|
|
"
|
|
|
|
|
2021-10-04 01:38:18 +02:00
|
|
|
S=${WORKDIR}
|
|
|
|
|
2021-10-03 17:58:12 +02:00
|
|
|
src_install() {
|
|
|
|
udev_dorules "${FILESDIR}/10-proximity.rules"
|
|
|
|
udev_dorules "${FILESDIR}/10-pinephone-brightness.rules"
|
|
|
|
udev_dorules "${FILESDIR}/20-pinephone-led.rules"
|
|
|
|
udev_dorules "${FILESDIR}/90-usb-gadget-managed.rules"
|
|
|
|
|
|
|
|
insinto /etc/gtk-3.0/
|
|
|
|
newins "${FILESDIR}/gtk3-settings.ini" "settings.ini"
|
|
|
|
|
|
|
|
insinto /etc/profile.d
|
|
|
|
doins "${FILESDIR}/manjaro-tweaks.sh"
|
|
|
|
doins "${FILESDIR}/gsk-renderer-gl.sh"
|
|
|
|
|
|
|
|
insinto /usr/share/glib-2.0/schemas
|
|
|
|
doins "${FILESDIR}/90_manjaro.gschema.override"
|
|
|
|
|
|
|
|
insinto /usr/lib64/firefox/
|
|
|
|
doins "${FILESDIR}/manjaro.cfg"
|
|
|
|
|
|
|
|
insinto /usr/lib64/firefox/defaults/pref
|
|
|
|
doins "${FILESDIR}/autoconfig.js"
|
|
|
|
|
|
|
|
insinto /usr/share/feedbackd/themes
|
|
|
|
doins "${FILESDIR}/manjaro.json"
|
|
|
|
|
|
|
|
insinto /var/lib/polkit-1/localauthority/10-vendor.d
|
|
|
|
doins "${FILESDIR}/org.freedesktop.ModemManager1.pkla"
|
|
|
|
|
|
|
|
insinto /etc/systemd/logind.conf.d
|
|
|
|
doins "${FILESDIR}/ignore-power-key.conf"
|
|
|
|
|
|
|
|
insinto /etc/systemd/journald.conf.d/
|
|
|
|
doins "${FILESDIR}/00-journal-size.conf"
|
|
|
|
|
|
|
|
insinto /etc/dconf/profile/
|
|
|
|
newins "${FILESDIR}/dconf-profile-manjaro" "user"
|
|
|
|
doins "${FILESDIR}/gsk-renderer-gl.sh"
|
|
|
|
|
|
|
|
insinto /etc/dconf/db/manjaro.d
|
|
|
|
doins "${FILESDIR}/01-phoc-scaling"
|
|
|
|
|
|
|
|
insinto /etc/pulse
|
|
|
|
doins "${FILESDIR}/pinephone.pa"
|
|
|
|
|
|
|
|
exeinto /etc/pulse/daemon.conf.d
|
|
|
|
doins "${FILESDIR}/90-pinephone.conf"
|
|
|
|
|
|
|
|
newbin "${FILESDIR}/phosh_renice.sh" phosh_renice
|
|
|
|
|
|
|
|
systemd_dounit ${FILESDIR}/pinephone-camera-setup.service
|
|
|
|
systemd_dounit ${FILESDIR}/phosh-renice.service
|
|
|
|
|
|
|
|
systemd_dounit ${FILESDIR}/pinephone-setup-usb-network.service
|
|
|
|
systemd_dounit ${FILESDIR}/pinephone-usb-gadget.service
|
|
|
|
|
|
|
|
insinto /etc/umtprd
|
|
|
|
doins ${FILESDIR}/umtp-responder-manjaro.conf
|
|
|
|
insinto /lib/systemd/system/umtp-responder.service.d
|
|
|
|
newins ${FILESDIR}/umtp-responder-override.conf override.conf
|
|
|
|
|
|
|
|
dobin ${FILESDIR}/pinephone-usb-gadget.sh
|
|
|
|
dobin ${FILESDIR}/pinephone-setup-usb-network.sh
|
|
|
|
}
|