fxstein / fxstein/GoProX

Misc: Create FreeBSD Port

Open
#59 2 comments 1 reaction 0 assignees View on GitHub
bug enhancement further investigation good first issue help wanted
Dominant language
Shell
Stars
27
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I wanted to run this within a FreeBSD jail to reorganize a bunch of media already on a TrueNAS appliance.

Since macOS and *BSD share some heritage this was actually much easier than I thought it would be.

```Makefile
# $FreeBSD$

PORTNAME= goprox
DISTVERSION= 00.52.00
CATEGORIES= multimedia

DISTVERSIONPREFIX= v

MAINTAINER= joshua.michael.keyes@gmail.com
COMMENT= Missing GoPro workflow manager for zsh
WWW= https://github.com/fxstein/GoProX

LICENSE= MIT

RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool \
jq:textproc/jq \
zsh:shells/zsh

USES= shebangfix

USE_GITHUB= yes
GH_ACCOUNT= fxstein
GH_PROJECT= GoProX

SHEBANG_LANG= zsh
SHEBANG_FILES= goprox

zsh_OLD_CMD= "/usr/bin/env zsh" /bin/zsh /usr/bin/zsh
zsh_CMD= ${LOCALBASE}/bin/zsh

NO_BUILD= yes
DOCS= README.md LICENSE

do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/goprox ${STAGEDIR}${DATADIR}/goprox
${LN} -fs ${DATADIR}/goprox ${STAGEDIR}${PREFIX}/bin/goprox
${INSTALL_MAN} ${WRKSRC}/man/goprox.1 ${STAGEDIR}${PREFIX}/man/man1/
# NOTE: Firmware isn't included to keep the package size low.
#${MKDIR} ${STAGEDIR}${DATADIR}/firmware
#(cd ${WRKSRC}/firmware && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/firmware)
#${MKDIR} ${STAGEDIR}${DATADIR}/firmware.labs
#(cd ${WRKSRC}/firmware.labs && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/firmware.labs)

.include
```

I have some remaining questions:
* The source archive is nearing 1GB: could firmware be downloaded on demand instead?
* Is this useful enough to submit to the FreeBSD ports tree?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.