x11-misc/sxcs: new package

Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
This commit is contained in:
Nickolas Raymond Kaczynski
2022-11-02 21:36:44 +06:00
parent ea39be84ed
commit 4e4d04ea45
3 changed files with 48 additions and 0 deletions

1
x11-misc/sxcs/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST sxcs-0.7.tar.gz 22442 BLAKE2B ebc11e55cf0676fd86353c915678aa52265b13572bcad61302fbb42b3490d6651af5872b58e44158c06d933ea731808fd025bfcd02bde31be834808601ffe980 SHA512 58bf998ba3ab82ced546ee44f3d2159ceb6d4bd4c524eabe7f80c6e762c2c6dc3e4727da0c6a45fa204ed158dd57ae8f2973f66948b35beb399682e4c8bf4666

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nrk@disroot.org</email>
</maintainer>
<!-- <upstream> -->
<!-- <remote-id type="codeberg">NRK/sxcs</remote-id> -->
<!-- </upstream> -->
</pkgmetadata>

View File

@@ -0,0 +1,37 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Color picker and magnifier for X11."
HOMEPAGE="https://codeberg.org/NRK/sxcs"
SRC_URI="https://codeberg.org/NRK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
KEYWORDS="~amd64"
LICENSE="GPL-3+"
SLOT="0"
IUSE=""
RDEPEND="
x11-libs/libX11
x11-libs/libXcursor
"
DEPEND="${RDEPEND}"
src_compile() {
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
emake install \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr"
dodoc README.md
}