Date: Friday, October 10, 2014 @ 13:42:56 Author: flexiondotorg Revision: 120480
Added missing assets. Added: syncthing/repos/community-i686/PKGBUILD syncthing/repos/community-i686/syncthing.install syncthing/repos/community-i686/syncthing.service syncthing/repos/community-x86_64/PKGBUILD syncthing/repos/community-x86_64/syncthing.install syncthing/repos/community-x86_64/syncthing.service ------------------------------------+ community-i686/PKGBUILD | 52 +++++++++++++++++++++++++++++++++++ community-i686/syncthing.install | 13 ++++++++ community-i686/syncthing.service | 11 +++++++ community-x86_64/PKGBUILD | 52 +++++++++++++++++++++++++++++++++++ community-x86_64/syncthing.install | 13 ++++++++ community-x86_64/syncthing.service | 11 +++++++ 6 files changed, 152 insertions(+) Added: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,52 @@ +# $Id: +# Maintainer : Martin Wimpress <c...@flexion.org> +# Contributor: Sauyon Lee <sauy...@sauyon.com> +# Contributor: Kevin MacMartin <pruri...@gmail.com> +# Contributor: korjjj <korjjj+...@gmail.com> + +pkgname=syncthing +pkgver=0.10.0 +pkgrel=3 +pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" +url="http://syncthing.net/" +license=('MIT') +arch=('i686' 'x86_64') +depends=('glibc') +makedepends=('git' 'go' 'godep' 'inetutils' 'sed') +source=("$pkgname-$pkgver::git+https://github.com/syncthing/syncthing.git#tag=v${pkgver}" + "syncthing@.service" + "syncthing.service" + "syncthing.1") +sha1sums=('SKIP' + '204cad3823306c793a14a17a23220e26199160d4' + '2d3870eff21ad0724a48ba93e87064686693e3b9' + '17be8b3f99c577e325765abc251f597e204d7711') +install=${pkgname}.install + +prepare() { + cd "${srcdir}" + mkdir -p "src/github.com/syncthing" + mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" +} + +build() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + go run build.go -no-upgrade build +} + +check() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + go run build.go -no-upgrade test +} + +package() { + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + install -D -m 755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -D -m 644 "${srcdir}/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -D -m 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + install -D -m 644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" +} Added: community-i686/syncthing.install =================================================================== --- community-i686/syncthing.install (rev 0) +++ community-i686/syncthing.install 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,13 @@ +post_install() { +cat << EOF + To start and/or enable syncthing execute the following, + replacing 'user' with your username. + + systemctl start syncthing@user + systemctl enable syncthing@user +EOF +} + +post_upgrade() { + post_install +} Added: community-i686/syncthing.service =================================================================== --- community-i686/syncthing.service (rev 0) +++ community-i686/syncthing.service 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,11 @@ +[Unit] +Description=Syncthing service for %u +After=network.target + +[Service] +Environment=STNORESTART=yes +ExecStart=/usr/bin/syncthing +Restart=on-success + +[Install] +WantedBy=default.target Added: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,52 @@ +# $Id: +# Maintainer : Martin Wimpress <c...@flexion.org> +# Contributor: Sauyon Lee <sauy...@sauyon.com> +# Contributor: Kevin MacMartin <pruri...@gmail.com> +# Contributor: korjjj <korjjj+...@gmail.com> + +pkgname=syncthing +pkgver=0.10.0 +pkgrel=3 +pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" +url="http://syncthing.net/" +license=('MIT') +arch=('i686' 'x86_64') +depends=('glibc') +makedepends=('git' 'go' 'godep' 'inetutils' 'sed') +source=("$pkgname-$pkgver::git+https://github.com/syncthing/syncthing.git#tag=v${pkgver}" + "syncthing@.service" + "syncthing.service" + "syncthing.1") +sha1sums=('SKIP' + '204cad3823306c793a14a17a23220e26199160d4' + '2d3870eff21ad0724a48ba93e87064686693e3b9' + '17be8b3f99c577e325765abc251f597e204d7711') +install=${pkgname}.install + +prepare() { + cd "${srcdir}" + mkdir -p "src/github.com/syncthing" + mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" +} + +build() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + go run build.go -no-upgrade build +} + +check() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + go run build.go -no-upgrade test +} + +package() { + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + install -D -m 755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -D -m 644 "${srcdir}/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -D -m 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + install -D -m 644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" +} Added: community-x86_64/syncthing.install =================================================================== --- community-x86_64/syncthing.install (rev 0) +++ community-x86_64/syncthing.install 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,13 @@ +post_install() { +cat << EOF + To start and/or enable syncthing execute the following, + replacing 'user' with your username. + + systemctl start syncthing@user + systemctl enable syncthing@user +EOF +} + +post_upgrade() { + post_install +} Added: community-x86_64/syncthing.service =================================================================== --- community-x86_64/syncthing.service (rev 0) +++ community-x86_64/syncthing.service 2014-10-10 11:42:56 UTC (rev 120480) @@ -0,0 +1,11 @@ +[Unit] +Description=Syncthing service for %u +After=network.target + +[Service] +Environment=STNORESTART=yes +ExecStart=/usr/bin/syncthing +Restart=on-success + +[Install] +WantedBy=default.target