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

George Rawlinson grawlinson at gemini.archlinux.org
Wed Jan 5 03:57:21 UTC 2022


    Date: Wednesday, January 5, 2022 @ 03:57:20
  Author: grawlinson
Revision: 1093205

upgpkg: drone-cli 1.5.0-1

* New upstream release.
* Switch to git commit rather than tarball.
* Disable LTO.

Modified:
  drone-cli/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-05 02:56:31 UTC (rev 1093204)
+++ PKGBUILD	2022-01-05 03:57:20 UTC (rev 1093205)
@@ -4,8 +4,8 @@
 # Contributor: Christian Höppner <chris at mkaito.com>
 
 pkgname=drone-cli
-pkgver=1.4.0
-pkgrel=2
+pkgver=1.5.0
+pkgrel=1
 pkgdesc="Command line interface for Drone CI"
 arch=('x86_64')
 url="https://docs.drone.io/cli"
@@ -12,11 +12,18 @@
 license=('Apache')
 depends=('glibc')
 makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/drone/drone-cli/archive/v$pkgver.tar.gz")
-b2sums=('a894c14c011374df5498bace23d40e7376b112250cbf901419f26eb6434fae12a6c325fde907adc25049c3c712574fa41a34984fd8467417134b755a06bde64e')
+options=('!lto')
+_commit='92e84c4e2452f82ad093722d87ad054e1821805e'
+source=("$pkgname::git+https://github.com/harness/drone-cli.git#commit=$_commit")
+md5sums=('SKIP')
 
+pkgver() {
+  cd "$pkgname"
+  git describe --tags | sed 's/^[vV]//;s/-/+/g'
+}
+
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # create directory for build output
   mkdir build
@@ -26,7 +33,7 @@
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # set Go flags
   export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -44,12 +51,12 @@
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   go test -v ./...
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # binary
   install -vDm755 -t "$pkgdir/usr/bin" build/drone



More information about the arch-commits mailing list