Date: Tuesday, May 17, 2016 @ 20:55:21 Author: jlichtblau Revision: 175563
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: syncthing/repos/community-staging-i686/ syncthing/repos/community-staging-i686/PKGBUILD (from rev 175562, syncthing/trunk/PKGBUILD) syncthing/repos/community-staging-i686/syncthing.install (from rev 175562, syncthing/trunk/syncthing.install) syncthing/repos/community-staging-x86_64/ syncthing/repos/community-staging-x86_64/PKGBUILD (from rev 175562, syncthing/trunk/PKGBUILD) syncthing/repos/community-staging-x86_64/syncthing.install (from rev 175562, syncthing/trunk/syncthing.install) --------------------------------------------+ community-staging-i686/PKGBUILD | 69 +++++++++++++++++++++++++++ community-staging-i686/syncthing.install | 12 ++++ community-staging-x86_64/PKGBUILD | 69 +++++++++++++++++++++++++++ community-staging-x86_64/syncthing.install | 12 ++++ 4 files changed, 162 insertions(+) Copied: syncthing/repos/community-staging-i686/PKGBUILD (from rev 175562, syncthing/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-05-17 18:55:21 UTC (rev 175563) @@ -0,0 +1,69 @@ +# $Id$ +# Maintainer : Martin Wimpress <c...@flexion.org> +# Maintainer : Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Contributor: Sauyon Lee <sauy...@sauyon.com> +# Contributor: Kevin MacMartin <pruri...@gmail.com> +# Contributor: korjjj <korjjj+...@gmail.com> + +pkgname=syncthing +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" +arch=('i686' 'x86_64') +url="http://syncthing.net/" +license=('MPL') +depends=('glibc') +makedepends=('git' 'go' 'godep' 'inetutils' 'sed') +install=$pkgname.install +source=($pkgname-$pkgver::git+https://github.com/syncthing/syncthing.git#tag=v${pkgver}) +sha1sums=('SKIP') + +prepare() { + cd "${srcdir}" + install -d "src/github.com/syncthing" + mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" +} + +build() { + export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ ${CARCH}" == "i686" ] ; then + go run build.go -no-upgrade -goarch 386 build + elif [ ${CARCH}" == "x86_64" ] ; then + go run build.go -no-upgrade -goarch amd64 build + else + go run build.go -no-upgrade build + fi +} + +check() { + export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ "${CARCH}" == "x86_64" ] ; then + go run build.go -no-upgrade test + fi +} + +package() { + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -Dm644 "etc/linux-systemd/system/${pkgname}-resume.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}-resume.service" + install -Dm644 "etc/linux-systemd/system/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -Dm644 "etc/linux-systemd/user/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + +# license + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + +# man pages + cd "${srcdir}/src/github.com/syncthing/${pkgname}/man" + for file in $(find . -name '*.1' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man1/$file + done + for file in $(find . -name '*.5' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man5/$file + done + for file in $(find . -name '*.7' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man7/$file + done +} Copied: syncthing/repos/community-staging-i686/syncthing.install (from rev 175562, syncthing/trunk/syncthing.install) =================================================================== --- community-staging-i686/syncthing.install (rev 0) +++ community-staging-i686/syncthing.install 2016-05-17 18:55:21 UTC (rev 175563) @@ -0,0 +1,12 @@ +post_upgrade() { + if (( "$(vercmp $2 0.13.0-1)" < 0 )); then + cat << EOF + This is the first release on the new major v0.13 branch. It is not + protocol compatible with the v0.12.x releases! Use this release if you are + a new user, or when you are ready to upgrade all devices in your cluster. + Full information is available on the release page + https://github.com/syncthing/syncthing/releases/tag/v0.13.0 + +EOF + fi +} Copied: syncthing/repos/community-staging-x86_64/PKGBUILD (from rev 175562, syncthing/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-05-17 18:55:21 UTC (rev 175563) @@ -0,0 +1,69 @@ +# $Id$ +# Maintainer : Martin Wimpress <c...@flexion.org> +# Maintainer : Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Contributor: Sauyon Lee <sauy...@sauyon.com> +# Contributor: Kevin MacMartin <pruri...@gmail.com> +# Contributor: korjjj <korjjj+...@gmail.com> + +pkgname=syncthing +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" +arch=('i686' 'x86_64') +url="http://syncthing.net/" +license=('MPL') +depends=('glibc') +makedepends=('git' 'go' 'godep' 'inetutils' 'sed') +install=$pkgname.install +source=($pkgname-$pkgver::git+https://github.com/syncthing/syncthing.git#tag=v${pkgver}) +sha1sums=('SKIP') + +prepare() { + cd "${srcdir}" + install -d "src/github.com/syncthing" + mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" +} + +build() { + export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ ${CARCH}" == "i686" ] ; then + go run build.go -no-upgrade -goarch 386 build + elif [ ${CARCH}" == "x86_64" ] ; then + go run build.go -no-upgrade -goarch amd64 build + else + go run build.go -no-upgrade build + fi +} + +check() { + export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ "${CARCH}" == "x86_64" ] ; then + go run build.go -no-upgrade test + fi +} + +package() { + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -Dm644 "etc/linux-systemd/system/${pkgname}-resume.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}-resume.service" + install -Dm644 "etc/linux-systemd/system/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -Dm644 "etc/linux-systemd/user/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + +# license + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + +# man pages + cd "${srcdir}/src/github.com/syncthing/${pkgname}/man" + for file in $(find . -name '*.1' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man1/$file + done + for file in $(find . -name '*.5' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man5/$file + done + for file in $(find . -name '*.7' -print); do + install -Dm644 $file "${pkgdir}"/usr/share/man/man7/$file + done +} Copied: syncthing/repos/community-staging-x86_64/syncthing.install (from rev 175562, syncthing/trunk/syncthing.install) =================================================================== --- community-staging-x86_64/syncthing.install (rev 0) +++ community-staging-x86_64/syncthing.install 2016-05-17 18:55:21 UTC (rev 175563) @@ -0,0 +1,12 @@ +post_upgrade() { + if (( "$(vercmp $2 0.13.0-1)" < 0 )); then + cat << EOF + This is the first release on the new major v0.13 branch. It is not + protocol compatible with the v0.12.x releases! Use this release if you are + a new user, or when you are ready to upgrade all devices in your cluster. + Full information is available on the release page + https://github.com/syncthing/syncthing/releases/tag/v0.13.0 + +EOF + fi +}