void-packages/srcpkgs/TMSU/template

29 lines
750 B
Bash

# Template file for 'TMSU'
pkgname=TMSU
version=0.7.4
revision=1
build_style=go
go_import_path=github.com/oniony/TMSU
hostmakedepends="git"
depends="fuse sqlite"
short_desc="Tool for tagging files and accessing them through FUSE"
maintainer="xaltsc <xaltsc@protonmail.ch>"
license="GPL-3.0-or-later"
homepage="https://tmsu.org"
distfiles="https://github.com/oniony/TMSU/archive/v${version}.tar.gz"
checksum=04e8a4c47532a4d8f673c3b3a921a47815c752b2ca1b564f6e1ed58a1b88a177
pre_build() {
export GOPATH=$PWD
}
do_install() {
vbin "$(find bin -name TMSU)" tmsu
vbin misc/bin/mount.tmsu
vbin misc/bin/tmsu-fs-merge
vbin misc/bin/tmsu-fs-mv
vbin misc/bin/tmsu-fs-rm
vman misc/man/tmsu.1
vinstall misc/zsh/_tmsu 644 usr/share/zsh/site-functions
}