mystuff/net/gurk-rs/Makefile

37 lines
735 B
Makefile
Raw Normal View History

2023-02-07 07:46:06 +01:00
COMMENT = Signal Messenger client for the terminal
2022-10-31 22:01:15 +01:00
GH_ACCOUNT = boxdot
GH_PROJECT = gurk-rs
2022-11-20 12:36:32 +01:00
GH_TAGNAME = v0.3.0
2022-10-31 22:01:15 +01:00
CATEGORIES = net
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
2022-11-20 12:36:32 +01:00
# AGPL 3.0
2022-10-31 22:01:15 +01:00
PERMIT_PACKAGE = Yes
2023-02-10 19:15:47 +01:00
# vendor files (see ${FILESDIR}/config)
2022-11-20 12:36:32 +01:00
MASTER_SITES0 = https://codevoid.de/h/
DISTFILES += ${DISTNAME}-vendorfiles${EXTRACT_SUFX}:0
2022-10-31 22:01:15 +01:00
MODULES = devel/cargo
2023-02-10 19:15:47 +01:00
WANTLIB = m ${MODCARGO_WANTLIB}
2022-10-31 22:01:15 +01:00
2023-02-07 07:37:03 +01:00
BUILD_DEPENDS = devel/protobuf \
security/rust-ring
2022-10-31 22:01:15 +01:00
CONFIGURE_STYLE = cargo
post-configure:
2023-02-10 19:15:47 +01:00
sed -i '/opt-level/s,2,0,' ${WRKDIR}/.cargo/config
cat ${FILESDIR}/config >> ${WRKDIR}/.cargo/config
2022-11-20 12:36:32 +01:00
2023-02-10 08:06:17 +01:00
do-install:
2023-02-10 19:15:47 +01:00
${INSTALL_PROGRAM} ${MODCARGO_TARGET_DIR}/release/gurk ${PREFIX}/bin/
2023-02-10 08:06:17 +01:00
2022-11-20 12:36:32 +01:00
.include "crates.inc"
2022-10-31 22:01:15 +01:00
.include <bsd.port.mk>