# $OpenBSD: Makefile,v 1.2 2021/08/14 07:01:23 tb Exp $

COMMENT=	terminal browser for gemini protocol

MODGO_MODNAME=	github.com/makeworld-the-better-one/amfora
MODGO_VERSION=	v1.8.0

DISTNAME=	amfora-${MODGO_VERSION}

CATEGORIES=	net

HOMEPAGE=	https://github.com/makeworld-the-better-one/amfora

MAINTAINER=	Dimitri Karamazov <deserter666@danwin1210.me>

# GPLv3
PERMIT_PACKAGE=	Yes

WANTLIB += 	c pthread

MODULES=	lang/go

RUN_DEPENDS=	devel/desktop-file-utils

ALL_TARGET=	github.com/makeworld-the-better-one/amfora

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/amfora.desktop ${PREFIX}/share/applications
	${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/logo.png ${PREFIX}/share/pixmaps/amfora.png

.include "modules.inc"

.include <bsd.port.mk>
