mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Fix PORTNAME/PKGNAMEPREFIX misuse
- Remove article from beginning of COMMENT - Add LICENSE - Add NO_ARCH - Simplify installation and plist generation - Fix tab after WWW:
This commit is contained in:
parent
af445e53b7
commit
cffb4deece
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373671
@ -1,35 +1,29 @@
|
||||
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= data
|
||||
PORTNAME= dangerdeep-data
|
||||
PORTVERSION= 0.3.0
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/dangerdeep/danger_from_the_deep-${PORTNAME}/${PORTVERSION}
|
||||
PKGNAMEPREFIX= dangerdeep-
|
||||
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
||||
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
|
||||
DIST_SUBDIR= dangerdeep
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= The Danger from the Deep data files
|
||||
COMMENT= Danger from the Deep data files
|
||||
|
||||
LICENSE= CCbyNCND
|
||||
LICENSE_NAME= Creative Commons Attribution-NonCommercial-NonDerivs
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
||||
|
||||
USES= zip
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
DATADIR= share/${PKGNAMEPREFIX:S/-//}
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
pre-install:
|
||||
@${RM} -f ${PLIST}
|
||||
@cd ${WRKSRC} && \
|
||||
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
|
||||
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
|
||||
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
|
||||
WRKSRC= ${WRKDIR}/data
|
||||
DATADIR= ${PREFIX}/share/dangerdeep
|
||||
PORTDATA= *
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}
|
||||
cd ${WRKSRC} && \
|
||||
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \; && \
|
||||
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \;
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
The Danger From the Deep data files
|
||||
|
||||
WWW: http://dangerdeep.sf.net
|
||||
WWW: http://dangerdeep.sf.net
|
||||
|
Loading…
Reference in New Issue
Block a user