# Copyright 2025 David Legrand # Distributed under the terms of the GNU General Public License v2 FERRETDB_COMMIT="0d5eb3343a50b800634cc08ace608bb6f3a3f74b" require github [ tag=v${PV} ] go [ go_minimum_version=1.25.0 bin_name="bin/ferretdb" package_path="./cmd/ferretdb" ] require systemd-service [ systemd_files=[ build/ferretdb.service ] ] SUMMARY="A truly open source MongoDB alternative" LICENCES="Apache-2.0" SLOT="0" PLATFORMS="~amd64 ~armv8" MYOPTIONS="" DEPENDENCIES="" src_prepare() { default edo echo "${FERRETDB_COMMIT}" | edo tee build/version/commit.txt edo echo "exherbo" | edo tee build/version/package.txt edo echo "v${PV}" | edo tee build/version/version.txt } src_test() { edo pushd cmd/ferretdb edo go test -c -o /dev/null ./... popd } src_install() { go_src_install install_systemd_files }