[arch-commits] Commit in aliyun-cli/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Mon May 3 09:34:52 UTC 2021
Date: Monday, May 3, 2021 @ 09:34:52
Author: anthraxx
Revision: 926848
archrelease: copy trunk to community-x86_64
Added:
aliyun-cli/repos/community-x86_64/PKGBUILD
(from rev 926847, aliyun-cli/trunk/PKGBUILD)
Deleted:
aliyun-cli/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 142 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 71 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-03 09:34:45 UTC (rev 926847)
+++ PKGBUILD 2021-05-03 09:34:52 UTC (rev 926848)
@@ -1,71 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
-
-pkgname=aliyun-cli
-pkgver=3.0.73
-_aliyun_openapi_meta_commit=7c6b451e55c7ada812b88c032c1048a3d9c4cd12
-pkgrel=1
-pkgdesc='Alibaba Cloud CLI'
-arch=('x86_64')
-url='https://github.com/aliyun/aliyun-cli'
-license=('APACHE')
-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}")
-sha512sums=('4c1b4f88fef19d7d94a05b3c58be837eeefb8a6d935fe35f7861fd74828a62aef20c2fd90f71550dbcfe48f23bc667cd3e54de6fd99ac2074eb1539765d1d039'
- 'SKIP')
-b2sums=('d396656a8192763e56190c2968e073665b7e0be0c5b7047b38d8ab8547a3cf6ad8002b6523f2c06b80e59e2206e7d4e35784659046e3e5b76530accddb0f6169'
- 'SKIP')
-
-prepare() {
- export GOPATH="${srcdir}/go"
-
- 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"
-}
-
-build() {
- export GOPATH="${srcdir}/go"
- export PATH="${GOPATH}/bin:${PATH}"
-
- cd "${GOPATH}/src/github.com/aliyun/${pkgname}"
-
- export CGO_LDFLAGS="${LDFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw -ldflags=-linkmode=external"
-
- go-bindata \
- -o resource/metas.go \
- -pkg resource \
- ../aliyun-openapi-meta/...
-
- go build \
- -ldflags "-linkmode=external -extldflags '${LDFLAGS}' -X 'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
- -o ./out/aliyun ./main/main.go
-}
-
-check() {
- export GOPATH="${srcdir}/go"
-
- cd "${GOPATH}/src/github.com/aliyun/${pkgname}"
-
- # Horrible but needed for the ./cli/ tests
- touch "${HOME}/.bashrc"
-
- # 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 \
- ./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 644 README*.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 bin/README.md -t "${pkgdir}/usr/share/doc/${pkgname}/bin"
-}
-
-# vim: ts=2 sw=2 et:
Copied: aliyun-cli/repos/community-x86_64/PKGBUILD (from rev 926847, aliyun-cli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-03 09:34:52 UTC (rev 926848)
@@ -0,0 +1,71 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
+
+pkgname=aliyun-cli
+_gitcommit=06016bfcd98fa546f81a0d3bbbc119ffcab0f132
+pkgver=3.0.74
+pkgrel=1
+pkgdesc='Alibaba Cloud CLI'
+arch=('x86_64')
+url='https://github.com/aliyun/aliyun-cli'
+license=('APACHE')
+depends=('glibc' 'jq')
+makedepends=('git' 'go' 'go-bindata')
+source=("git+${url}#commit=${_gitcommit}"
+ git+https://github.com/aliyun/aliyun-openapi-meta)
+sha512sums=('SKIP'
+ 'SKIP')
+b2sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+ git submodule init
+ git config submodule."aliyun-openapi-meta".url "${srcdir}/aliyun-openapi-meta"
+ git submodule update --recursive
+}
+
+build() {
+ cd ${pkgname}
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
+
+ echo "generating bindata..."
+ go-bindata \
+ -o resource/metas.go \
+ -pkg resource \
+ ./aliyun-openapi-meta/...
+
+ echo "building..."
+ go build \
+ -ldflags "-linkmode=external -extldflags '${LDFLAGS}' -X 'github.com/aliyun/aliyun-cli/cli.Version=${pkgver}'" \
+ -o ./out/aliyun ./main/main.go
+}
+
+check() {
+ cd ${pkgname}
+
+ # Horrible but needed for the ./cli/ tests
+ touch "${HOME}/.bashrc"
+
+ # 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 \
+ ./cli/... ./command/... ./config/... ./i18n/... ./main/... ./openapi/... ./resource/...
+}
+
+package() {
+ cd ${pkgname}
+ 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"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list