blob: cc203eacf6ac3a5b7fb26c6abc576fe60492364c (
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
|
PORTNAME= sq
DISTVERSIONPREFIX= v
DISTVERSION= 0.31.0
CATEGORIES= security
PKGNAMEPREFIX= sequoia-
MAINTAINER= vishwin@FreeBSD.org
COMMENT= Sequoia-PGP command line tool
WWW= https://sequoia-pgp.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libnettle.so:security/nettle \
libgmp.so:math/gmp
USES= cargo llvm sqlite ssl
USE_GITLAB= yes
GL_ACCOUNT= sequoia-pgp
GL_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= BASH FISH MANPAGES ZSH
OPTIONS_DEFAULT= BASH FISH MANPAGES ZSH
OPTIONS_SUB= yes
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
post-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/${PORTNAME}.bash \
${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME}
post-install-FISH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/${PORTNAME}.fish \
${STAGEDIR}${PREFIX}/share/fish/completions
post-install-MANPAGES-on:
${FIND} ${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/release/build/${PKGNAMEPREFIX}${PORTNAME}-*/out -name "*.1" \
-exec ${INSTALL_MAN} {} ${STAGEDIR}${MANPREFIX}/man/man1 \;
post-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/_${PORTNAME} \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
.include <bsd.port.mk>
|