Thank you! I applied your patch, regenerated distinfo, removed the
.png in files and updated the tar.gz.

On Fri, Feb 10, 2023 at 4:15 PM Stuart Henderson <s...@spacehopper.org> wrote:
>
> On 2023/02/10 15:25, David Pedersen wrote:
> > That was my initial goal, to use the same launcher logo from the
> > runelite repository as FreeBSD use on their port.
> > This one: 
> > https://raw.githubusercontent.com/runelite/launcher/2.6.1/appimage/runelite.png
> >
> > But I was unable to get it working fetching multiple files and the
> > MASTER_SITE is different. Can you give me some pointers on how to
> > fetch the logo separately on build?
> >
> > The other ports I can find that fetch a .jar directly skip the logo,
> > and the Minecraft port has a .svg directly in files.
>
> ah, I just looked in the repo and missed that it's just fetching the
> jar. ok, something like this (+ regen distinfo) should do the trick.
>
> --- Makefile.orig       Thu Feb  9 19:38:48 2023
> +++ Makefile    Fri Feb 10 15:13:01 2023
> @@ -1,16 +1,16 @@
>  COMMENT =      open source OldSchool RuneScape client
>
>  V =            2.6.1
> -DISTNAME =     RuneLite
>  PKGNAME =      runelite-${V}
> -REVISION =     1
>
> -MASTER_SITES = https://github.com/runelite/launcher/releases/download/${V}/
> +MASTER_SITES = https://github.com/runelite/launcher/releases/download/$V/
> +MASTER_SITES0 =        
> https://raw.githubusercontent.com/runelite/launcher/$V/appimage/
> +DISTFILES =    runelite-$V{RuneLite}.jar \
> +               runelite-$V{runelite}.png:0
>
>  CATEGORIES =   games
>
>  EXTRACT_ONLY =
> -EXTRACT_SUFX = .jar
>
>  NO_BUILD =     Yes
>  NO_TEST =      Yes
> @@ -29,13 +29,13 @@ do-install:
>         ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/128x128/apps/ \
>                 ${PREFIX}/share/applications/ \
>                 ${PREFIX}/share/java/classes/
> -       ${SUBST_PROGRAM} ${FILESDIR}/runelite.png \
> +       ${INSTALL_DATA} ${FULLDISTDIR}/runelite-$V.png \
>                 ${PREFIX}/share/icons/hicolor/128x128/apps/runelite.png
> -       ${SUBST_PROGRAM} ${FILESDIR}/runelite.desktop \
> +       ${SUBST_DATA} ${FILESDIR}/runelite.desktop \
>                 ${PREFIX}/share/applications/runelite.desktop
>         ${SUBST_PROGRAM} ${FILESDIR}/runelite.sh \
>                 ${PREFIX}/bin/runelite
> -       cp -r ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
> +       ${INSTALL_DATA} ${FULLDISTDIR}/runelite-$V.jar \
>                 ${PREFIX}/share/java/classes/runelite.jar
>
>  .include <bsd.port.mk>
>

Reply via email to