You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake desktop xdg-utils
|
|
|
|
COMMIT="42b6acd19af00689e8f34355e3b13323d8ea3f79"
|
|
DATA_PV="0.8"
|
|
|
|
DESCRIPTION="Port of Abuse by Crack Dot Com"
|
|
HOMEPAGE="https://github.com/Xenoveritas/abuse"
|
|
SRC_URI="https://github.com/Xenoveritas/abuse/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
|
|
http://abuse.zoy.org/raw-attachment/wiki/download/${PN}-${DATA_PV}.tar.gz"
|
|
|
|
LICENSE="GPL-2 public-domain WTFPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND=">=media-libs/libsdl2-2.0.3[sound,video]
|
|
media-libs/sdl2-mixer[midi,wav]"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
|
|
|
src_prepare() {
|
|
ln -snf ../../${PN}-${DATA_PV}/data/{music,sfx} data/ || die
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
# https://github.com/Xenoveritas/abuse/pull/6
|
|
local mycmakeargs=(
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
doicon -s 32 doc/${PN}.png
|
|
make_desktop_entry abuse Abuse
|
|
}
|
|
|
|
pkg_postinst() { xdg_icon_cache_update; }
|
|
pkg_postrm() { xdg_icon_cache_update; }
|