Date: Thursday, November 5, 2015 @ 21:19:57 Author: jlichtblau Revision: 146052
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 146051, syncthing/trunk/PKGBUILD) syncthing/repos/community-staging-i686/syncthing.install (from rev 146051, syncthing/trunk/syncthing.install) syncthing/repos/community-staging-x86_64/ syncthing/repos/community-staging-x86_64/PKGBUILD (from rev 146051, syncthing/trunk/PKGBUILD) syncthing/repos/community-staging-x86_64/syncthing.install (from rev 146051, syncthing/trunk/syncthing.install) --------------------------------------------+ community-staging-i686/PKGBUILD | 66 +++++++++++++++++++++++++++ community-staging-i686/syncthing.install | 12 ++++ community-staging-x86_64/PKGBUILD | 66 +++++++++++++++++++++++++++ community-staging-x86_64/syncthing.install | 12 ++++ 4 files changed, 156 insertions(+) Copied: syncthing/repos/community-staging-i686/PKGBUILD (from rev 146051, syncthing/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2015-11-05 20:19:57 UTC (rev 146052) @@ -0,0 +1,66 @@ +# $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.12.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}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ ${CARCH}" == "i686" ] ; then + go run build.go -no-upgrade -goarch 386 build + if [ ${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}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + #go run build.go -no-upgrade test +} + +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}@.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 146051, syncthing/trunk/syncthing.install) =================================================================== --- community-staging-i686/syncthing.install (rev 0) +++ community-staging-i686/syncthing.install 2015-11-05 20:19:57 UTC (rev 146052) @@ -0,0 +1,12 @@ +post_upgrade() { + if (( "$(vercmp $2 0.12.0-1)" < 0 )); then + cat << EOF + This is the first release on the new major v0.12 branch. It is not + compatible with the v0.11.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://forum.syncthing.net/t/syncthing-v0-12-0-beryllium-bedbug/6026 + +EOF + fi +} Copied: syncthing/repos/community-staging-x86_64/PKGBUILD (from rev 146051, syncthing/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2015-11-05 20:19:57 UTC (rev 146052) @@ -0,0 +1,66 @@ +# $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.12.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}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + if [ ${CARCH}" == "i686" ] ; then + go run build.go -no-upgrade -goarch 386 build + if [ ${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}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + #go run build.go -no-upgrade test +} + +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}@.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 146051, syncthing/trunk/syncthing.install) =================================================================== --- community-staging-x86_64/syncthing.install (rev 0) +++ community-staging-x86_64/syncthing.install 2015-11-05 20:19:57 UTC (rev 146052) @@ -0,0 +1,12 @@ +post_upgrade() { + if (( "$(vercmp $2 0.12.0-1)" < 0 )); then + cat << EOF + This is the first release on the new major v0.12 branch. It is not + compatible with the v0.11.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://forum.syncthing.net/t/syncthing-v0-12-0-beryllium-bedbug/6026 + +EOF + fi +}