Files
guru/gui-wm/phosh/phosh-0.11.0.ebuild
Marco Scardovi b1eaeb0226 gui-wm/phosh: new package
phosh is the DM for mobile phones/tablet like librem 5,
pinephone and pinetab. This does not have things like telephony,
etc. They will be added with with phosh-meta, which is the
biggest package for phosh.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco@scardovi.com>
2021-06-22 16:16:00 +02:00

80 lines
1.8 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop gnome2-utils meson pam readme.gentoo-r1 vala systemd xdg
MY_P="${PN}-v${PV}"
DESCRIPTION="A pure Wayland shell prototype for GNOME on mobile devices"
HOMEPAGE="https://source.puri.sm/Librem5/phosh"
SRC_URI="https://source.puri.sm/Librem5/phosh/-/archive/v0.11.0/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~arm64"
LICENSE="GPL-3"
SLOT="0"
IUSE="+systemd"
DEPEND="
app-crypt/gcr
dev-libs/feedbackd
media-sound/pulseaudio
>=gui-libs/libhandy-1.1.90
net-misc/networkmanager
gnome-base/gnome-desktop
gnome-base/gnome-session
x11-themes/gnome-backgrounds
x11-wm/phoc
systemd? ( sys-apps/systemd )
sys-power/upower
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/ctags
dev-util/meson
"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/0001-system-prompt-allow-blank-passwords.patch
"${FILESDIR}"/0002-fix-locale-issue.patch
"${FILESDIR}"/0003-fix-locale-issue-in-service-file.patch
"${FILESDIR}"/0004-calls-manager.patch.patch
"${FILESDIR}"/0005-calls-manager.patch.patch
"${FILESDIR}"/0006-calls-manager.patch.patch
)
src_prepare() {
default
eapply_user
}
src_install() {
default
meson_src_install
newpamd "${FILESDIR}"/pam_phosh 'phosh'
systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
domenu /usr/share/applications/
doins "${FILESDIR}"/sm.puri.OSK0.desktop
DOC_CONTENTS="
To amend the existing password policy please see the man 5 passwdqc.conf
page and then edit the /etc/security/passwdqc.conf file to change enforce=none
to allow use digit only password as phosh only support passcode for now
"
readme.gentoo_create_doc
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
readme.gentoo_print_elog
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}