# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="a dockapp that lets you easily track time spent on different projects"
HOMEPAGE="https://www.dockapps.net/wmwork"
SRC_URI="https://www.dockapps.net/download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"

RDEPEND=">=x11-libs/libXext-1.0.3
	>=x11-libs/libX11-1.1.1-r1
	>=x11-libs/libXpm-3.5.6"
DEPEND="${RDEPEND}
	x11-base/xorg-proto"

S="${WORKDIR}/${P}/src"

DOCS=( ../{CHANGES,README} )
PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )

src_prepare() {
	default
	eautoreconf
}