1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net-p2p/bazarr/Makefile
Michiel van Baak Jansen 22d8cccfd0 net-p2p/bazarr*: new ports for bazarr and bazarr-devel
Bazarr is a companion application to Sonarr and Radarr that manages and
downloads subtitles based on your requirements.

- net-p2p/bazarr uses latest stable release
- net-p2p/bazarr-devel uses beta builds (created automatically from
  development branch once a day, if there were changes to that branch)
- Ports dont have bundled dependencies unbundled (yet).
  Talked this over with upstream, they are not going to unbundle
  for support-workload avoidance  and ease-of-install they get from the
  fact they bundle all dependencies on specific versions.
- Reserve UID and GID for bazarr daemon process
- Add to net-p2p/Makefile
- The plists are auto-generated as in multimedia/tautulli.

Website: https://www.bazarr.media
Changelog: https://github.com/morpheus65535/bazarr/releases
Bugtracker: https://github.com/morpheus65535/bazarr/issues

PR:		243967
2021-07-14 15:52:51 +02:00

47 lines
1.2 KiB
Makefile

PORTNAME= bazarr
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.5
CATEGORIES= net-p2p python
# Grab the asset as it contains built frontend and some extra files
MASTER_SITES= https://github.com/morpheus65535/bazarr/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
DISTNAME= bazarr
MAINTAINER= michiel@vanbaak.eu
COMMENT= Automatic subtitle downloader for Radarr and Sonarr
LICENSE= GPLv3
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}lxml>=4.3.0:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webrtcvad>=2.0.10:audio/py-webrtcvad@${PY_FLAVOR} \
ffprobe:multimedia/ffmpeg \
unrar:archivers/unrar
USES= python:3.7+ zip
USE_RC_SUBR= bazarr
NO_ARCH= yes
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
USERS=${USERS}
NO_WRKSUBDIR= yes
USERS= bazarr
GROUPS= bazarr
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}
post-install:
@${FIND} -s ${STAGEDIR} -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
.include <bsd.port.mk>