[arch-commits] Commit in cozy-stack/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Thu Jul 25 15:24:54 UTC 2019


    Date: Thursday, July 25, 2019 @ 15:24:53
  Author: archange
Revision: 492793

upgpkg: cozy-stack 1:1.2.10-1

Modified:
  cozy-stack/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-25 14:59:51 UTC (rev 492792)
+++ PKGBUILD	2019-07-25 15:24:53 UTC (rev 492793)
@@ -1,7 +1,7 @@
 # Maintainer: Bruno Pagani <archange at archlinux.org>
 
 pkgname=cozy-stack
-pkgver=1.2.9
+pkgver=1.2.10
 pkgrel=1
 epoch=1
 pkgdesc="Digital home: brings all your web services in the same private space – Stack component"
@@ -20,7 +20,7 @@
         "${pkgname}.service"
         "${pkgname}.sysusers"
         "${pkgname}.tmpfiles")
-sha256sums=('bd43429251a2cdba1b2645f2a3fb3a69032e97f3a21de96d7aeba98c82291dc5'
+sha256sums=('63ec29436fd72db10890b100501440720c62f393ceba2b30d29164f266abba65'
             'c4ed4b0831308261017fe7d532787ed8aa542ca5ecac65f5770edb29793415ef'
             'ad9b40170e2b07d5aa5ea6d444ad16c96bb39adb5ff579db5cc39cb4e2ec3f91'
             'a6bea52350e85163c3141509a52903223fa0f6e7390b1b1f9336c326a8fff984'
@@ -27,11 +27,11 @@
             'fd333c2fd0de859890204554f52a5c64b953664f6cb262b20bb839aa70ed9ecb')
 
 build() {
-    export GOPATH="${srcdir}"/cozy-stack
-    cd cozy-stack/src/github.com/cozy/cozy-stack
-    go build -v -o "${srcdir}"/bin/cozy-stack \
-             -gcflags "all=-trimpath=${GOPATH}" \
-             -asmflags "all=-trimpath=${GOPATH}" \
+    cd ${pkgname}
+    export GOPATH="${PWD}/vendor"
+    go build -v -o ${pkgname} \
+             -gcflags "all=-trimpath=${PWD}" \
+             -asmflags "all=-trimpath=${PWD}" \
              -ldflags "-X github.com/cozy/cozy-stack/pkg/config.Version=${pkgver} \
                        -X github.com/cozy/cozy-stack/pkg/config.BuildTime=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
                        -X github.com/cozy/cozy-stack/pkg/config.BuildMode=production \
@@ -39,12 +39,13 @@
 }
 
 package() {
-    install -Dm755 bin/cozy-stack -t "${pkgdir}"/usr/bin/
     install -Dm644 cozy.yml -t "${pkgdir}"/etc/cozy/
-    install -Dm644 cozy-stack/src/github.com/cozy/cozy-stack/cozy.example.yaml -t "${pkgdir}"/usr/share/cozy/
-    install -Dm755 cozy-stack/src/github.com/cozy/cozy-stack/scripts/konnector-node-run.sh -t "${pkgdir}"/usr/share/cozy/
-    install -Dm755 cozy-stack/src/github.com/cozy/cozy-stack/scripts/konnector-nsjail-run.sh -t "${pkgdir}"/usr/share/cozy/
     install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
     install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
     install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+    cd ${pkgname}
+    install -Dm755 ${pkgname} -t "${pkgdir}"/usr/bin/
+    install -Dm644 cozy.example.yaml -t "${pkgdir}"/usr/share/cozy/
+    install -Dm755 scripts/konnector-node-run.sh -t "${pkgdir}"/usr/share/cozy/
+    install -Dm755 scripts/konnector-nsjail-run.sh -t "${pkgdir}"/usr/share/cozy/
 }


More information about the arch-commits mailing list