From 0910eeea8cdf97da7e1124ffb9daa5dd2e0beb55 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Thu, 14 Mar 2024 17:29:51 +0200 Subject: [PATCH] new file: projects/syncthing.net/package.yml --- projects/syncthing.net/package.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/syncthing.net/package.yml diff --git a/projects/syncthing.net/package.yml b/projects/syncthing.net/package.yml new file mode 100644 index 00000000..edee09c6 --- /dev/null +++ b/projects/syncthing.net/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/syncthing/syncthing/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: syncthing/syncthing + +build: + dependencies: + go.dev: ^1.21 + script: + - go run build.go --version {{version.tag}} --no-upgrade tar + - install -D syncthing {{prefix}}/bin/syncthing + - run: cp $SRCROOT/man/*.1 ./ + working-directory: ${{prefix}}/share/man/man1 + - run: cp $SRCROOT/man/*.5 ./ + working-directory: ${{prefix}}/share/man/man5 + - run: cp $SRCROOT/man/*.7 ./ + working-directory: ${{prefix}}/share/man/man7 + +provides: + - bin/syncthing + +test: + - syncthing --version | grep {{version}} + - syncthing -generate ./ + - ls | grep config.xml