summaryrefslogtreecommitdiff
path: root/net-p2p/sonarr-devel/Makefile
blob: b21f4c34d0a88d97d4d8773d866463f278203fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PORTNAME=	sonarr
DISTVERSION=	4.0.0.720
PORTREVISION=	1
CATEGORIES=	net-p2p
MASTER_SITES=	https://download.sonarr.tv/v4/develop/${PORTVERSION}/
PKGNAMESUFFIX=	-devel
DISTNAME=	Sonarr.develop.${DISTVERSION}.freebsd-x64

MAINTAINER=	michiel@vanbaak.eu
COMMENT=	PVR for Usenet and BitTorrent users
WWW=		https://sonarr.tv

LICENSE=	GPLv3

ONLY_FOR_ARCHS=	amd64

RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss \
		icu>0:devel/icu \
		krb5>0:security/krb5 \
		libiconv>0:converters/libiconv \
		libinotify>0:devel/libinotify \
		libunwind>0:devel/libunwind

USES=	ssl:run sqlite:3
USE_RC_SUBR=	sonarr

CONFLICTS_INSTALL=	sonarr

NO_BUILD=	YES
SUB_FILES=	sonarr package_info pkg-message
SUB_LIST=	DATADIR=${DATADIR} \
		GROUPS=${GROUPS} \
		MAINTAINER=${MAINTAINER} \
		PKGVERSION=${PKGVERSION} \
		PORTNAME=${PORTNAME} \
		USERS=${USERS}

WRKSRC=		${WRKDIR}/Sonarr

USERS=		sonarr
GROUPS=		sonarr

post-extract:
	${RM} -rf ${WRKSRC}/Sonarr.Update

do-install:
	${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/
	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/ "! -name Sonarr -and ! -name ffprobe"
	${INSTALL_PROGRAM} ${WRKSRC}/Sonarr ${STAGEDIR}/${DATADIR}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/ffprobe ${STAGEDIR}/${DATADIR}/bin/

post-install:
	${INSTALL_DATA} ${WRKDIR}/package_info ${STAGEDIR}/${DATADIR}/

.include <bsd.port.mk>