Files
erisus-void-packages/srcpkgs/goanime/template
T

30 lines
1.1 KiB
Plaintext

# Template file for 'goanime'
pkgname=goanime
version=2.0.4
revision=2
build_style=go
go_import_path="github.com/alvarorichard/Goanime/v2"
go_package="${go_import_path}/cmd/goanime"
hostmakedepends="go gcc"
depends="mpv"
short_desc="Terminal application to stream and download anime and movies"
maintainer="Juan Rojas <juandmcr@protonmail.com>"
license="MIT"
homepage="https://github.com/alvarorichard/GoAnime"
distfiles="https://github.com/alvarorichard/GoAnime/archive/refs/tags/v${version}.tar.gz"
checksum=f4ce3f93bf429144165d338117304829a689eeca8dbfff893e3c9bf8c6b3256b
make_check=no # Tests take too long (10m+ and panic exit because of timeout so tbh if the package works I won't run the tests bc I don't have time to waste and this is an unofficial repo anyways, I might fix this in the future tho)
do_install() {
bin="$wrksrc/_build-goanime-xbps/bin/goanime"
if [ ! -x "$bin" ]; then
set -- "$wrksrc"/_build-goanime-xbps/bin/*/goanime
[ -x "$1" ] || { echo "Error: Unable to find the goanime binary weee edit the template weee" >&2; return 1; }
bin="$1"
fi
vbin "$bin"
vlicense LICENSE
}