# $OpenBSD: Makefile,v 1.2 2018/02/10 17:39:35 landry Exp $

COMMENT =		sexy and modern icon theme with Tango influences

GH_ACCOUNT =		snwh
GH_PROJECT =		faba-icon-theme
GH_TAGNAME =		v4.1.2
CATEGORIES =		x11

HOMEPAGE =		https://snwh.org/moka#faba-icon-theme
MASTER_SITES0 =		https://github.com/moka-project/faba-mono-icons/raw/master/

DISTFILES =	${DISTNAME}${EXTRACT_SUFX} faba-mono-icons-4.2.tar.gz:0
# GPLv3
PERMIT_PACKAGE_CDROM =	Yes

PKG_ARCH =		*
NO_BUILD =		Yes
NO_TEST =		Yes

RUN_DEPENDS =		x11/gtk+3,-guic

ICONSDIR =		${PREFIX}/share/icons/

do-install:
	${INSTALL_DATA_DIR} ${ICONSDIR}
	# Fix perms
	find ${WRKDIST}/../faba* ! -perm 644 -type f -exec chmod 644 {} \;
	cd ${WRKDIST} ; pax -L -rw Faba ${ICONSDIR}
	cd ${WRKDIST}/../faba-mono-icons-4.2/ ; pax -rw Faba-* ${ICONSDIR}
	# broken link
	rm ${PREFIX}/share/icons/Faba/16x16/places/folder-drag-accept.svg

.include <bsd.port.mk>
