gentoo-zh/cutefish-base/cutefish-screenlocker/cutefish-screenlocker-0.7.ebuild
2021-12-14 18:17:56 +08:00

45 lines
980 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake
if [[ ${PV} = 9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/cutefishos/screenlocker.git"
EGIT_CHECKOUT_DIR=screenlocker-${PV}
KEYWORDS=""
else
EGIT_COMMIT="90c70de51b61837dc9f52da58b5cce703cddab94"
SRC_URI="https://github.com/cutefishos/screenlocker/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~riscv"
S="${WORKDIR}/screenlocker-${EGIT_COMMIT}"
fi
DESCRIPTION="CutefishOS system screen locker"
HOMEPAGE="https://github.com/cutefishos/core"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=""
DEPEND="
sys-libs/fishui
sys-libs/libcutefish
"
BDEPEND="${DEPEND}
kde-frameworks/extra-cmake-modules
dev-qt/linguist-tools[qml]
dev-qt/assistant
dev-qt/designer
dev-qt/qdbusviewer
"
src_configure(){
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="/usr"
)
cmake_src_configure
}