mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-10 20:08:43 -04:00
app-misc/keyd: add new package,2.4.2
Signed-off-by: ston <ston.jia@qq.com>
This commit is contained in:
parent
88f45b1873
commit
162ecf0ed8
8
acct-group/keyd/keyd-0.ebuild
Normal file
8
acct-group/keyd/keyd-0.ebuild
Normal file
@ -0,0 +1,8 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-group
|
||||
|
||||
ACCT_GROUP_ID=-1
|
9
acct-group/keyd/metadata.xml
Normal file
9
acct-group/keyd/metadata.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>ston</name>
|
||||
<email>ston.jia@qq.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
1
app-misc/keyd/Manifest
Normal file
1
app-misc/keyd/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST keyd-2.4.2.tar.gz 640567 BLAKE2B 4ef65d32ccda420a514366ea3d5337ba0b54f29697aaa3cc2aee3fe9132d1717e87bf9e7f65e58504c80b8e4e45e3b1ec5660d524f2e101435034360d7f86e36 SHA512 185d548fdcec3bdd444a0e6d18045493ac082d7d98afcbd53ba6f1b17b39200eb472cf4d4162da80d0a5e623af359a629f325254df71b4adad9033622690f8e6
|
11
app-misc/keyd/files/default.conf
Normal file
11
app-misc/keyd/files/default.conf
Normal file
@ -0,0 +1,11 @@
|
||||
[ids]
|
||||
|
||||
*
|
||||
|
||||
[main]
|
||||
|
||||
# Maps capslock to escape when pressed and control when held.
|
||||
capslock = overload(control, esc)
|
||||
|
||||
# Remaps the escape key to capslock
|
||||
esc = capslock
|
33
app-misc/keyd/keyd-2.4.2.ebuild
Normal file
33
app-misc/keyd/keyd-2.4.2.ebuild
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="A key remapping daemon for linux"
|
||||
HOMEPAGE="https://github.com/rvaiya/keyd"
|
||||
SRC_URI="https://github.com/rvaiya/keyd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="mirror"
|
||||
DEPEND="acct-group/keyd"
|
||||
RDEPEND="$DEPEND"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "/-groupadd keyd/d" Makefile || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm -r "${D}"/usr/share/{man,doc} || die
|
||||
dodoc docs/{CHANGELOG.md,DESIGN.md}
|
||||
systemd_dounit keyd.service
|
||||
insinto /etc/keyd
|
||||
doins "${FILESDIR}"/default.conf
|
||||
gzip -d data/{keyd,keyd-application-mapper}.1.gz || die
|
||||
doman data/{keyd,keyd-application-mapper}.1
|
||||
}
|
12
app-misc/keyd/metadata.xml
Normal file
12
app-misc/keyd/metadata.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE
|
||||
pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>ston</name>
|
||||
<email>ston.jia@qq.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">rvaiya/keyd</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user