summaryrefslogtreecommitdiff
path: root/mail/linux-r7-organizer/Makefile
blob: b5e87bed2fc932ff206790fcd1481f40bc7470d2 (plain) (blame)
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
PORTNAME=	r7-organizer
PORTVERSION=	3.1.2
PORTREVISION=	1
DISTVERSIONSUFFIX=	-1
CATEGORIES=	mail linux russian
MASTER_SITES=	https://download.r7-office.ru/organizer/centos/
PKGNAMEPREFIX=	linux-
DISTNAME=	r7organizer-${PORTVERSION}${DISTVERSIONSUFFIX}
EXTRACT_SUFX=	.x86_64.rpm

MAINTAINER=	fluffy@FreeBSD.org
COMMENT=	Russian office mail, tasks and contacts organizer (BASIC version)
WWW=		https://r7-office.ru/organizer

LICENSE=	commercial
LICENSE_NAME=	commercial
LICENSE_TEXT=	Commercial software with 30 days trial period
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept

ONLY_FOR_ARCHS=	amd64

USES=		desktop-file-utils linux:rl9 shared-mime-info

USE_LINUX=	gtk3 sqlite3 alsalib

CONFLICTS_INSTALL=	linux-r7-organizer-pro

NO_BUILD=	yes
PLIST_SUB=	LINUXBASE=${LINUXBASE}
STRIP=

post-patch:
	${REINPLACE_CMD} -i '' 's|/opt/r7-office/organizer/|${PREFIX}/bin/|' ${WRKDIR}/opt/r7-office/organizer/r7-organizer.desktop
	${REINPLACE_CMD} -i '' 's|P7|Р7|' ${WRKDIR}/opt/r7-office/organizer/r7-organizer.desktop

do-install:
	cd ${WRKDIR}/opt && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share
	${RM} ${STAGEDIR}${PREFIX}/share/r7-office/organizer/r7organizer
	${INSTALL_PROGRAM} -C ${WRKDIR}/opt/r7-office/organizer/r7organizer ${STAGEDIR}${PREFIX}/share/r7-office/organizer/r7organizer
	${RLN} ${STAGEDIR}${PREFIX}/share/r7-office/organizer/r7organizer ${STAGEDIR}${PREFIX}/bin/
	${MV} ${STAGEDIR}${PREFIX}/share/r7-office/organizer/r7-organizer.desktop ${STAGEDIR}${PREFIX}/share/applications
	${RLN} ${STAGEDIR}${PREFIX}/share/r7-office/organizer/chrome/icons/default/default256.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/r7-organizer.png

.include <bsd.port.mk>