add slstatus
This commit is contained in:
parent
7cce9b750d
commit
b1b76514fe
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>florianbadie@odrling.xyz</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,51 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit git-r3 savedconfig toolchain-funcs
|
||||
|
||||
DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
|
||||
HOMEPAGE="https://tools.suckless.org/dmenu/"
|
||||
EGIT_REPO_URI="https://git.odrling.xyz/odrling/dmenu.git"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/libX11
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
PATCHES=()
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e 's|^ @| |g' \
|
||||
-e '/^ echo/d' \
|
||||
Makefile || die
|
||||
|
||||
sed -i \
|
||||
-e "s/ -Os / /" \
|
||||
-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
|
||||
config.mk || die
|
||||
|
||||
restore_config config.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC) \
|
||||
"X11INC=$( $(tc-getPKG_CONFIG) --cflags x11 2>/dev/null )" \
|
||||
"X11LIB=$( $(tc-getPKG_CONFIG) --libs x11 kvm 2>/dev/null )"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
save_config config.h
|
||||
}
|
Loading…
Reference in New Issue