[arch-commits] Commit in aliyun-cli/trunk (PKGBUILD)

2020-12-14 Thread Levente Polyak via arch-commits
Date: Monday, December 14, 2020 @ 22:59:12
  Author: anthraxx
Revision: 775777

upgpkg: aliyun-cli 3.0.64-1

Modified:
  aliyun-cli/trunk/PKGBUILD

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

Modified: PKGBUILD
===
--- PKGBUILD2020-12-14 22:53:16 UTC (rev 775776)
+++ PKGBUILD2020-12-14 22:59:12 UTC (rev 775777)
@@ -2,8 +2,8 @@
 # Contributor: Andreas 'Segaja' Schleifer 
 
 pkgname=aliyun-cli
-pkgver=3.0.50
-_aliyun_openapi_meta_commit=57cfcbb99c6bfe7016deebfa991328ae7c31ff12
+pkgver=3.0.64
+_aliyun_openapi_meta_commit=9ce1f8ae486d76f0fc92a33082b764e73d5bf955
 pkgrel=1
 pkgdesc='Alibaba Cloud CLI'
 arch=('x86_64')
@@ -13,9 +13,9 @@
 makedepends=('git' 'go' 'go-bindata')
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
 
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};)
-sha512sums=('b1d6f088089f2ceb5ccc8e766fa6f80273e1a3110d0f380bee71714c2d486d5c7d1ce82cb0676010d2c842e431e94b12db389b2f22a532f811e25064ee0dfae0'
+sha512sums=('18126b864a00bac6af6fc1d2b25427d0481681f6b125e2d5aef555e8e562e7170185d0a83a4cc3ce9ad18f393c12e24d40a1af555738ee447dff20446f3c6d12'
 'SKIP')
-b2sums=('ef1b7494981599a809958d434acd00e31be554362bd5ea78f02af148033c2e9053935500276d678d328c54c620b52651ae15931220fbebe88010d079105cbf81'
+b2sums=('82b23ab1367d158e84fc6fcd370a6e369dd2551429aa5165489d1d8a292d43635019cab4865c5fac1d196594c71d1c5004143fc371fbc577ba536545047aeecb'
 'SKIP')
 
 prepare() {
@@ -36,7 +36,7 @@
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw 
-ldflags=-linkmode=external"
 
   go-bindata \
   -o resource/metas.go \
@@ -44,7 +44,7 @@
   ../aliyun-openapi-meta/...
 
   go build \
--ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
+-ldflags "-linkmode=external -extldflags '${LDFLAGS}' -X 
'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
 -o ./out/aliyun ./main/main.go
 }
 


[arch-commits] Commit in aliyun-cli/trunk (PKGBUILD)

2020-07-06 Thread Levente Polyak via arch-commits
Date: Monday, July 6, 2020 @ 16:51:41
  Author: anthraxx
Revision: 658046

upgpkg: aliyun-cli 3.0.50-1

Modified:
  aliyun-cli/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-06 16:46:28 UTC (rev 658045)
+++ PKGBUILD2020-07-06 16:51:41 UTC (rev 658046)
@@ -2,8 +2,8 @@
 # Contributor: Andreas 'Segaja' Schleifer 
 
 pkgname=aliyun-cli
-pkgver=3.0.46
-_aliyun_openapi_meta_commit=5f5f2b9649e360a1ae3426207a514dbd0bd8a2df
+pkgver=3.0.50
+_aliyun_openapi_meta_commit=57cfcbb99c6bfe7016deebfa991328ae7c31ff12
 pkgrel=1
 pkgdesc='Alibaba Cloud CLI'
 arch=('x86_64')
@@ -13,9 +13,9 @@
 makedepends=('git' 'go' 'go-bindata')
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
 
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};)
-sha512sums=('55722630d8ec6ae300458a98eba29a3df40acef72c51c427252722294ef273c40e4a58942b07ac9db8410f74f096b712fb86858a9b66ed5cf3f9f777ffc9afd2'
+sha512sums=('b1d6f088089f2ceb5ccc8e766fa6f80273e1a3110d0f380bee71714c2d486d5c7d1ce82cb0676010d2c842e431e94b12db389b2f22a532f811e25064ee0dfae0'
 'SKIP')
-b2sums=('42aacc3af9e57d08ab8defd6cd7a8e9582c7b8f59e13648c631ce380c8c35d6a00665e69af3791089b7e8dd92c3f00b4c3ccf091130642ccb864b17daab895b2'
+b2sums=('ef1b7494981599a809958d434acd00e31be554362bd5ea78f02af148033c2e9053935500276d678d328c54c620b52651ae15931220fbebe88010d079105cbf81'
 'SKIP')
 
 prepare() {


[arch-commits] Commit in aliyun-cli/trunk (PKGBUILD)

2020-06-13 Thread Levente Polyak via arch-commits
Date: Saturday, June 13, 2020 @ 13:52:35
  Author: anthraxx
Revision: 642854

upgpkg: aliyun-cli 3.0.46-1

Modified:
  aliyun-cli/trunk/PKGBUILD

--+
 PKGBUILD |   24 ++--
 1 file changed, 6 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-06-13 11:59:56 UTC (rev 642853)
+++ PKGBUILD2020-06-13 13:52:35 UTC (rev 642854)
@@ -2,9 +2,8 @@
 # Contributor: Andreas 'Segaja' Schleifer 
 
 pkgname=aliyun-cli
-pkgver=3.0.42
-_jteeuwen_go_bindata_commit=6025e8de665b31fa74ab1a66f2cddd8c0abf887e
-_aliyun_openapi_meta_commit=8ee9c7a0cd24e45f5f729c98395b944b4cc89e4a
+pkgver=3.0.46
+_aliyun_openapi_meta_commit=5f5f2b9649e360a1ae3426207a514dbd0bd8a2df
 pkgrel=1
 pkgdesc='Alibaba Cloud CLI'
 arch=('x86_64')
@@ -13,25 +12,18 @@
 depends=('glibc' 'jq')
 makedepends=('git' 'go' 'go-bindata')
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
-
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};
-
"jteeuwen-go-bindata::git+https://github.com/jteeuwen/go-bindata#commit=${_jteeuwen_go_bindata_commit};)
-sha512sums=('b446d55254db7628004440da8b7fe8c43e382f6fd7712490c656e0e05048eea3377155f867d9fb9d16b06e585d2e0eddf94e6c5ebc1e3bd43b32473f2e84f641'
-'SKIP'
+
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};)
+sha512sums=('55722630d8ec6ae300458a98eba29a3df40acef72c51c427252722294ef273c40e4a58942b07ac9db8410f74f096b712fb86858a9b66ed5cf3f9f777ffc9afd2'
 'SKIP')
-b2sums=('60eeace414f8ebab48f839599d8ba864f570014d32fa50ca9544209479c47e339bb6c50cb1c2d3cc41ca7b6f1e895f1ea3768718504740cf178ea0615d105d25'
-'SKIP'
+b2sums=('42aacc3af9e57d08ab8defd6cd7a8e9582c7b8f59e13648c631ce380c8c35d6a00665e69af3791089b7e8dd92c3f00b4c3ccf091130642ccb864b17daab895b2'
 'SKIP')
 
 prepare() {
   export GOPATH="${srcdir}/go"
 
-  mkdir -p "${GOPATH}/src/github.com/"{aliyun,jteeuwen}
+  mkdir -p "${GOPATH}/src/github.com/aliyun"
   ln -rTsf "${pkgname}-${pkgver}" "${GOPATH}/src/github.com/aliyun/${pkgname}"
   ln -rTsf aliyun-openapi-meta 
"${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta"
-
-  # for now we can't use the go-bindata package as this breaks the resulting 
binary.
-  # The issue has been reported upstream: 
https://github.com/aliyun/aliyun-cli/issues/262
-  ln -rTsf jteeuwen-go-bindata "${GOPATH}/src/github.com/jteeuwen/go-bindata"
 }
 
 build() {
@@ -46,10 +38,6 @@
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
 
-  #pushd "${srcdir}/jteeuwen-go-bindata/go-bindata"
-  #go build
-  #popd
-
   go-bindata \
   -o resource/metas.go \
   -pkg resource \


[arch-commits] Commit in aliyun-cli/trunk (PKGBUILD)

2020-05-09 Thread Levente Polyak via arch-commits
Date: Saturday, May 9, 2020 @ 12:55:49
  Author: anthraxx
Revision: 625960

upgpkg: aliyun-cli 3.0.42-1

Modified:
  aliyun-cli/trunk/PKGBUILD

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

Modified: PKGBUILD
===
--- PKGBUILD2020-05-09 12:51:07 UTC (rev 625959)
+++ PKGBUILD2020-05-09 12:55:49 UTC (rev 625960)
@@ -2,23 +2,23 @@
 # Contributor: Andreas 'Segaja' Schleifer 
 
 pkgname=aliyun-cli
-pkgver=3.0.37
+pkgver=3.0.42
 _jteeuwen_go_bindata_commit=6025e8de665b31fa74ab1a66f2cddd8c0abf887e
-_aliyun_openapi_meta_commit=ccaf1ab45d1dc236c81f06ef9db11e41dfbd5d9c
-pkgrel=2
+_aliyun_openapi_meta_commit=8ee9c7a0cd24e45f5f729c98395b944b4cc89e4a
+pkgrel=1
 pkgdesc='Alibaba Cloud CLI'
 arch=('x86_64')
 url='https://github.com/aliyun/aliyun-cli'
 license=('APACHE')
 depends=('glibc' 'jq')
-makedepends=('git' 'go')
+makedepends=('git' 'go' 'go-bindata')
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
 
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};
 
"jteeuwen-go-bindata::git+https://github.com/jteeuwen/go-bindata#commit=${_jteeuwen_go_bindata_commit};)
-sha512sums=('9d750ede919ae4ceb405b7e93c1905820b598a855ed581cf85992c11bc534381c943da652a01d75b21d25f04cd8e2a4c4ead99d1cb9cd48384c286ad9db8f941'
+sha512sums=('b446d55254db7628004440da8b7fe8c43e382f6fd7712490c656e0e05048eea3377155f867d9fb9d16b06e585d2e0eddf94e6c5ebc1e3bd43b32473f2e84f641'
 'SKIP'
 'SKIP')
-b2sums=('2cde5b7714ca4a23ab05c1ed3ae900e37aef9271dab669dd1221376b17b841d4d35cb4c3d8d62fe92feed09c0b28aa6cf24a2db1445ddcf530c0518806a37239'
+b2sums=('60eeace414f8ebab48f839599d8ba864f570014d32fa50ca9544209479c47e339bb6c50cb1c2d3cc41ca7b6f1e895f1ea3768718504740cf178ea0615d105d25'
 'SKIP'
 'SKIP')
 
@@ -46,15 +46,14 @@
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
 
-  pushd "${srcdir}/jteeuwen-go-bindata/go-bindata"
-  go build
-  popd
+  #pushd "${srcdir}/jteeuwen-go-bindata/go-bindata"
+  #go build
+  #popd
 
-  "${srcdir}/jteeuwen-go-bindata/go-bindata/go-bindata" \
+  go-bindata \
   -o resource/metas.go \
   -pkg resource \
-  -prefix "${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta" \
-  "${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta/..."
+  ../aliyun-openapi-meta/...
 
   go build \
 -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \


[arch-commits] Commit in aliyun-cli/trunk (PKGBUILD)

2020-04-15 Thread Levente Polyak via arch-commits
Date: Wednesday, April 15, 2020 @ 13:27:26
  Author: anthraxx
Revision: 614707

upgpkg: aliyun-cli 3.0.37-2: pin dependencies

Modified:
  aliyun-cli/trunk/PKGBUILD

--+
 PKGBUILD |   55 ---
 1 file changed, 32 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-15 13:24:54 UTC (rev 614706)
+++ PKGBUILD2020-04-15 13:27:26 UTC (rev 614707)
@@ -3,52 +3,62 @@
 
 pkgname=aliyun-cli
 pkgver=3.0.37
-pkgrel=1
+_jteeuwen_go_bindata_commit=6025e8de665b31fa74ab1a66f2cddd8c0abf887e
+_aliyun_openapi_meta_commit=ccaf1ab45d1dc236c81f06ef9db11e41dfbd5d9c
+pkgrel=2
 pkgdesc='Alibaba Cloud CLI'
 arch=('x86_64')
 url='https://github.com/aliyun/aliyun-cli'
 license=('APACHE')
 depends=('glibc' 'jq')
-makedepends=('git' 'go-pie')
-source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('9d750ede919ae4ceb405b7e93c1905820b598a855ed581cf85992c11bc534381c943da652a01d75b21d25f04cd8e2a4c4ead99d1cb9cd48384c286ad9db8f941')
-b2sums=('2cde5b7714ca4a23ab05c1ed3ae900e37aef9271dab669dd1221376b17b841d4d35cb4c3d8d62fe92feed09c0b28aa6cf24a2db1445ddcf530c0518806a37239')
+makedepends=('git' 'go')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+
"git+https://github.com/aliyun/aliyun-openapi-meta#commit=${_aliyun_openapi_meta_commit};
+
"jteeuwen-go-bindata::git+https://github.com/jteeuwen/go-bindata#commit=${_jteeuwen_go_bindata_commit};)
+sha512sums=('9d750ede919ae4ceb405b7e93c1905820b598a855ed581cf85992c11bc534381c943da652a01d75b21d25f04cd8e2a4c4ead99d1cb9cd48384c286ad9db8f941'
+'SKIP'
+'SKIP')
+b2sums=('2cde5b7714ca4a23ab05c1ed3ae900e37aef9271dab669dd1221376b17b841d4d35cb4c3d8d62fe92feed09c0b28aa6cf24a2db1445ddcf530c0518806a37239'
+'SKIP'
+'SKIP')
 
 prepare() {
   export GOPATH="${srcdir}/go"
 
-  mkdir -p "${GOPATH}/src/github.com/aliyun"
+  mkdir -p "${GOPATH}/src/github.com/"{aliyun,jteeuwen}
   ln -rTsf "${pkgname}-${pkgver}" "${GOPATH}/src/github.com/aliyun/${pkgname}"
+  ln -rTsf aliyun-openapi-meta 
"${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta"
 
-  go get -u github.com/aliyun/aliyun-openapi-meta ||:
-
   # for now we can't use the go-bindata package as this breaks the resulting 
binary.
   # The issue has been reported upstream: 
https://github.com/aliyun/aliyun-cli/issues/262
-  go get -u github.com/jteeuwen/go-bindata/...
+  ln -rTsf jteeuwen-go-bindata "${GOPATH}/src/github.com/jteeuwen/go-bindata"
+}
 
+build() {
+  export GOPATH="${srcdir}/go"
   export PATH="${GOPATH}/bin:${PATH}"
 
   cd "${GOPATH}/src/github.com/aliyun/${pkgname}"
 
-  go-bindata \
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
+
+  pushd "${srcdir}/jteeuwen-go-bindata/go-bindata"
+  go build
+  popd
+
+  "${srcdir}/jteeuwen-go-bindata/go-bindata/go-bindata" \
   -o resource/metas.go \
   -pkg resource \
   -prefix "${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta" \
   "${GOPATH}/src/github.com/aliyun/aliyun-openapi-meta/..."
-}
 
-build() {
-  export GOPATH="${srcdir}/go"
-
-  cd "${GOPATH}/src/github.com/aliyun/${pkgname}"
-
   go build \
--trimpath \
--mod=vendor \
--ldflags "-extldflags ${LDFLAGS} -X 
'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
+-ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
 -o ./out/aliyun ./main/main.go
-
-  go clean --modcache
 }
 
 check() {
@@ -61,13 +71,12 @@
 
   # for now can't test the `./oss/...` folder, because it needs an env file 
that is not so easy to have in dev
   go test \
--race \
 ./cli/... ./command/... ./config/... ./i18n/... ./main/... ./openapi/... 
./resource/...
 }
 
 package() {
   cd "${GOPATH}/src/github.com/aliyun/${pkgname}"
-  install -Dm 755 ./out/aliyun "${pkgdir}/usr/bin/aliyun"
+  install -Dm 755 out/aliyun "${pkgdir}/usr/bin/aliyun"
   install -Dm 644 README*.md CHANGELOG.md -t 
"${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 bin/README.md -t "${pkgdir}/usr/share/doc/${pkgname}/bin"
 }