mystuff/books/openbsd-faq/Makefile
2024-01-05 16:25:15 +01:00

34 lines
701 B
Makefile

COMMENT = OpenBSD FAQ offline
GH_ACCOUNT = OpenBSD
GH_PROJECT = www
GH_COMMIT = 104daa6522e05f7c1780adab559ce5e7cd999d44
DISTNAME = openbsd-faq-20231229
PKGNAME = ${DISTNAME}
CATEGORIES = books
HOMEPAGE = https://www.openbsd.org/faq
# no maintainer OK needed to update
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
# ISC License
PERMIT_PACKAGE = Yes
RUN_DEPENDS = www/lynx
NO_BUILD = Yes
NO_TEST = Yes
DOCDIR = ${PREFIX}/share/doc/openbsd-faq
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
cp -r ${WRKSRC}/faq/* ${DOCDIR}/
echo "#!/bin/sh" > ${PREFIX}/bin/openbsd-faq
echo "lynx ${DOCDIR}/index.html" >> ${PREFIX}/bin/openbsd-faq
chmod +x ${PREFIX}/bin/openbsd-faq
.include <bsd.port.mk>