naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

33 lines
810 B
Makefile

# $OpenBSD: Makefile,v 1.7 2020/03/20 16:44:28 naddy Exp $
COMMENT = sexy and modern icon theme with Tango influences
GH_ACCOUNT = snwh
GH_PROJECT = faba-icon-theme
GH_TAGNAME = v4.3
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 = 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}
.include <bsd.port.mk>