diff options
Diffstat (limited to 'x11-misc/svkbd/svkbd-0.2.ebuild')
-rw-r--r-- | x11-misc/svkbd/svkbd-0.2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/x11-misc/svkbd/svkbd-0.2.ebuild b/x11-misc/svkbd/svkbd-0.2.ebuild new file mode 100644 index 000000000000..a6f135c3de90 --- /dev/null +++ b/x11-misc/svkbd/svkbd-0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit savedconfig toolchain-funcs + +DESCRIPTION="Simple Virtual Keyboard" +HOMEPAGE="https://tools.suckless.org/x/svkbd/" +SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT-with-advertising" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXinerama + x11-libs/libXtst +" +DEPEND=" + ${DEPEND} + x11-base/xorg-proto +" + +src_prepare() { + default + + restore_config config.def.h + + sed -i -e 's|pkg-config|$(PKG_CONFIG)|g' Makefile || die +} + +src_compile() { + for i in layout*.h; do + i=${i/layout.}; i=${i/.h} + emake \ + CC="$(tc-getCC)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" \ + LAYOUT=${i} + done +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + + doman ${PN}.1 + + save_config config.def.h +} |