diff --git a/srcpkgs/searchfile/template b/srcpkgs/searchfile/template new file mode 100644 index 00000000000..181f4642703 --- /dev/null +++ b/srcpkgs/searchfile/template @@ -0,0 +1,24 @@ +# Template file for 'searchfile' +pkgname=searchfile +version=0.0.0.20180623 +revision=1 +_commit=b0413998217ae397e0642cc5d3666ed89e866f0c +wrksrc="${pkgname}-${_commit}" +build_style=go +go_import_path="github.com/lumi-sch/searchfile" +short_desc="Stop wasting your time looking for files that are somewhere" +maintainer="cr6git " +license="MIT" +homepage="https://github.com/lumi-sch/searchfile" +distfiles="https://github.com/lumi-sch/searchfile/archive/${_commit}.tar.gz" +checksum=10bde7eb6a30ce5ebd01d257fd9cd89661ca86dc909d9d2c0b1f922abdfb6517 + +do_install() { + case "$XBPS_TARGET_MACHINE" in + aarch64*) vbin ${GOPATH}/bin/linux_arm64/${pkgname} ;; + arm*) vbin ${GOPATH}/bin/linux_arm/${pkgname} ;; + *) vbin ${GOPATH}/bin/${pkgname} ;; + esac + vlicense LICENSE +} +