1
0
flewkey-overlay/net-misc/tuba/tuba-0.5.0.ebuild

59 lines
1.1 KiB
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome2-utils meson vala xdg
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/GeopJr/Tuba.git"
else
MY_PN="Tuba"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://github.com/GeopJr/Tuba/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Mastodon client, previously known as Tooth"
HOMEPAGE="https://tuba.geopjr.dev/"
LICENSE="CC-BY-3.0 GPL-3+"
SLOT="0"
DEPEND="
>=app-crypt/libsecret-0.20
>=dev-libs/glib-2.76.0
>=dev-libs/json-glib-1.4.4
>=dev-libs/libxml2-2.9.10
>=dev-libs/libgee-0.8.5
>=gui-libs/gtk-4.11.3:4
>=gui-libs/libadwaita-1.4
>=net-libs/libsoup-3
gui-libs/gtksourceview:5
"
RDEPEND="${DEPEND}"
BDEPEND="
$(vala_depend)
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}/${P}-fixes.patch" )
VALA_MIN_API_VERSION=0.48
src_prepare() {
default
vala_setup
}
pkg_postinst() {
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_schemas_update
xdg_pkg_postrm
}