aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/supertuxkart/supertuxkart-9999.ebuild')
-rw-r--r--games-action/supertuxkart/supertuxkart-9999.ebuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/games-action/supertuxkart/supertuxkart-9999.ebuild b/games-action/supertuxkart/supertuxkart-9999.ebuild
index e52834f..3a1da01 100644
--- a/games-action/supertuxkart/supertuxkart-9999.ebuild
+++ b/games-action/supertuxkart/supertuxkart-9999.ebuild
@@ -8,13 +8,14 @@ inherit cmake-utils desktop gnome2-utils
DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
HOMEPAGE="https://supertuxkart.net/"
+SRC_URI="mirror://gentoo/${PN}.png"
+
if [[ ${PV} == 9999 ]]; then
inherit git-r3 subversion
EGIT_REPO_URI="https://github.com/${PN}/stk-code"
ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/stk-assets"
else
- SRC_URI="mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz
- mirror://gentoo/${PN}.png"
+ SRC_URI+=" mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
@@ -47,16 +48,15 @@ DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"
-# PATCHES=(
-# "${FILESDIR}"/${PN}-0.9.3-irrlicht-arch-support.patch
-# "${FILESDIR}"/${PN}-0.9.3-irrlicht-bundled-libs.patch
-# "${FILESDIR}"/${PN}-0.9.3-irrlicht-system-libs.patch
-# "${FILESDIR}"/${PN}-0.9.3-fix-buildsystem.patch
-# )
-
src_unpack() {
- git-r3_src_unpack
- ( S="${WORKDIR}/stk-assets" subversion_src_unpack )
+ A_ARR=(${A})
+ cp ${DISTDIR}/${A_ARR[0]} ${WORKDIR}
+ if [[ ${PV} == 9999 ]]; then
+ git-r3_src_unpack
+ ( S="${WORKDIR}/stk-assets" subversion_src_unpack )
+ else
+ unpack ${A_ARR[1]}
+ fi
}
src_prepare() {
@@ -84,7 +84,7 @@ src_install() {
cmake-utils_src_install
dodoc CHANGELOG.md
- # doicon -s 64 "${DISTDIR}"/${PN}.png
+ doicon -s 64 "${WORKDIR}"/${PN}.png
}
pkg_preinst() {