PORTNAME=	thokr
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.1
PORTREVISION=	3
CATEGORIES=	deskutils

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Sleek typing tui with visualized results and historical logging
WWW=		https://github.com/jrnxf/thokr

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	jrnxf

CARGO_CRATES=	atty-0.2.14 \
		autocfg-1.1.0 \
		bitflags-1.3.2 \
		bumpalo-3.9.1 \
		bytes-1.1.0 \
		cassowary-0.3.0 \
		cesu8-1.1.0 \
		cfg-if-1.0.0 \
		cgisf_lib-0.1.3 \
		chrono-0.4.19 \
		clap-3.1.8 \
		clap_derive-3.1.7 \
		combine-4.6.3 \
		crossterm-0.22.1 \
		crossterm-0.23.2 \
		crossterm_winapi-0.9.0 \
		darling-0.13.2 \
		darling_core-0.13.2 \
		darling_macro-0.13.2 \
		directories-4.0.1 \
		dirs-sys-0.3.7 \
		either-1.6.1 \
		fnv-1.0.7 \
		form_urlencoded-1.0.1 \
		getrandom-0.2.6 \
		hashbrown-0.11.2 \
		heck-0.4.0 \
		hermit-abi-0.1.19 \
		ident_case-1.0.1 \
		idna-0.2.3 \
		include_dir-0.7.2 \
		include_dir_macros-0.7.2 \
		indexmap-1.8.1 \
		instant-0.1.12 \
		itertools-0.10.3 \
		itoa-1.0.1 \
		jni-0.19.0 \
		jni-sys-0.3.0 \
		js-sys-0.3.56 \
		lazy_static-1.4.0 \
		libc-0.2.121 \
		lock_api-0.4.7 \
		log-0.4.16 \
		matches-0.1.9 \
		memchr-2.4.1 \
		mio-0.7.14 \
		mio-0.8.2 \
		miow-0.3.7 \
		ndk-0.6.0 \
		ndk-context-0.1.0 \
		ndk-glue-0.6.1 \
		ndk-macro-0.3.0 \
		ndk-sys-0.3.0 \
		ntapi-0.3.7 \
		num-integer-0.1.44 \
		num-traits-0.2.14 \
		num_enum-0.5.7 \
		num_enum_derive-0.5.7 \
		os_str_bytes-6.0.0 \
		parking_lot-0.11.2 \
		parking_lot-0.12.0 \
		parking_lot_core-0.8.5 \
		parking_lot_core-0.9.2 \
		percent-encoding-2.1.0 \
		ppv-lite86-0.2.16 \
		proc-macro-crate-1.1.3 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.36 \
		quote-1.0.17 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.3 \
		redox_syscall-0.2.13 \
		redox_users-0.4.3 \
		rustversion-1.0.6 \
		ryu-1.0.9 \
		same-file-1.0.6 \
		scopeguard-1.1.0 \
		serde-1.0.136 \
		serde_derive-1.0.136 \
		serde_json-1.0.79 \
		signal-hook-0.3.13 \
		signal-hook-mio-0.2.3 \
		signal-hook-registry-1.4.0 \
		smallvec-1.8.0 \
		strsim-0.10.0 \
		strum_macros-0.24.0 \
		syn-1.0.90 \
		termcolor-1.1.3 \
		textwrap-0.15.0 \
		thiserror-1.0.30 \
		thiserror-impl-1.0.30 \
		time-0.1.43 \
		tinyvec-1.5.1 \
		tinyvec_macros-0.1.0 \
		toml-0.5.8 \
		tui-0.17.0 \
		unicode-bidi-0.3.7 \
		unicode-normalization-0.1.19 \
		unicode-segmentation-1.9.0 \
		unicode-width-0.1.9 \
		unicode-xid-0.2.2 \
		url-2.2.2 \
		version_check-0.9.4 \
		walkdir-2.3.2 \
		wasi-0.10.2+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.79 \
		wasm-bindgen-backend-0.2.79 \
		wasm-bindgen-macro-0.2.79 \
		wasm-bindgen-macro-support-0.2.79 \
		wasm-bindgen-shared-0.2.79 \
		web-sys-0.3.56 \
		webbrowser-0.7.1 \
		widestring-0.5.1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.34.0 \
		windows_aarch64_msvc-0.34.0 \
		windows_i686_gnu-0.34.0 \
		windows_i686_msvc-0.34.0 \
		windows_x86_64_gnu-0.34.0 \
		windows_x86_64_msvc-0.34.0

PLIST_FILES=	bin/${PORTNAME}

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
