[arch-commits] Commit in syncthing/repos (2 files)

Martin Wimpress flexiondotorg at archlinux.org
Thu Nov 27 09:57:58 UTC 2014


    Date: Thursday, November 27, 2014 @ 10:57:58
  Author: flexiondotorg
Revision: 123190

Added missing PKGBUILD.

Added:
  syncthing/repos/community-i686/PKGBUILD
  syncthing/repos/community-x86_64/PKGBUILD

---------------------------+
 community-i686/PKGBUILD   |   51 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Added: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2014-11-27 09:57:58 UTC (rev 123190)
@@ -0,0 +1,51 @@
+# $Id:
+# Maintainer : Martin Wimpress <code at flexion.org>
+# Contributor: Sauyon Lee <sauyonl at sauyon.com>
+# Contributor: Kevin MacMartin <prurigro at gmail.com>
+# Contributor: korjjj <korjjj+aur at gmail.com>
+
+pkgname=syncthing
+pkgver=0.10.8
+pkgrel=1
+pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing"
+url="http://syncthing.net/"
+license=('GPL3')
+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 at .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 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/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2014-11-27 09:57:58 UTC (rev 123190)
@@ -0,0 +1,51 @@
+# $Id:
+# Maintainer : Martin Wimpress <code at flexion.org>
+# Contributor: Sauyon Lee <sauyonl at sauyon.com>
+# Contributor: Kevin MacMartin <prurigro at gmail.com>
+# Contributor: korjjj <korjjj+aur at gmail.com>
+
+pkgname=syncthing
+pkgver=0.10.8
+pkgrel=1
+pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing"
+url="http://syncthing.net/"
+license=('GPL3')
+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 at .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 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"
+}


More information about the arch-commits mailing list