Skip to content

Commit

Permalink
science/linux-zotero: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
0mp committed Nov 7, 2021
1 parent 3514c76 commit 29b0025
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions science/linux-zotero/Makefile
Expand Up @@ -5,9 +5,9 @@ MASTER_SITES= https://download.zotero.org/client/release/${DISTVERSION}/ \
https://raw.githubusercontent.com/zotero/zotero-standalone-build/${DISTVERSION}/:LICENSE
PKGNAMEPREFIX= linux-
DIST_SUBDIR= ${PORTNAME}
DISTFILES= Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX} \
DISTFILES= ${_MAIN_DISTFILE} \
COPYING:LICENSE
EXTRACT_ONLY= Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX}
EXTRACT_ONLY= ${_MAIN_DISTFILE}

MAINTAINER= 0mp@FreeBSD.org
COMMENT= Reference management for bibliographic data and research materials
Expand All @@ -26,6 +26,7 @@ USE_LINUX= dbusglib gtk3
SUB_FILES= zotero-wrapper

_BINARIES= pdftotext pdfinfo zotero-bin
_MAIN_DISTFILE= Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX}

post-extract:
${CP} ${DISTDIR}/${DIST_SUBDIR}/COPYING ${WRKDIR}
Expand All @@ -39,7 +40,7 @@ do-install:
(cd ${WRKSRC} && ${CHMOD} +x ${_BINARIES})
# Only strip zotero-bin. Other ${_BINARIES} break strip(1).
(cd ${STAGEDIR}${DATADIR} && ${STRIP_CMD} zotero-bin)
${MV} ${STAGEDIR}${DATADIR}/zotero.desktop ${STAGEDIR}${PREFIX}/share/applications/
${MV} ${STAGEDIR}${DATADIR}/zotero.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_SCRIPT} ${WRKDIR}/zotero-wrapper ${STAGEDIR}${PREFIX}/bin/zotero

.include <bsd.port.mk>

0 comments on commit 29b0025

Please sign in to comment.