[arch-commits] Commit in lego/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Thu Jan 20 04:08:51 UTC 2022
Date: Thursday, January 20, 2022 @ 04:08:51
Author: grawlinson
Revision: 1111244
upgpkg: lego 4.6.0-1
New upstream release.
Modified:
lego/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-20 03:25:18 UTC (rev 1111243)
+++ PKGBUILD 2022-01-20 04:08:51 UTC (rev 1111244)
@@ -2,7 +2,7 @@
# Contributor: Fernandez Ludovic <lfernandez dot dev at gmail dot com>
pkgname=lego
-pkgver=4.5.3
+pkgver=4.6.0
pkgrel=1
pkgdesc='Lets Encrypt client and ACME library'
url='https://go-acme.github.io/lego'
@@ -9,23 +9,29 @@
arch=('x86_64')
license=('MIT')
depends=('glibc')
-makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/go-acme/lego/archive/v$pkgver.tar.gz")
-sha512sums=('0de7a9078254a735a7802fb389673bfc4333a048a0d2211a0f76f4469a113ffcd6b0b63e574bdeb3f05c3140a310ce263a75d6ced71597f7b962518d8a762227')
-b2sums=('fe4b726f7fc384c7216bffbe2f39afcccfde2946b8a7c1291ab746bc0769a2829ab633c389e716fea203a2ce2e408bca8f61eb2352e01e2c5d46949a3f2c185b')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='3ad2fa7acb6d0d88499e8bf5c4b63cc77838ae87'
+source=("$pkgname::git+https://github.com/go-acme/lego.git#commit=$_commit")
+b2sums=('SKIP')
+pkgver() {
+ cd "$pkgname"
+ git describe --tags | sed 's/^v//'
+}
+
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# create directory for build output
mkdir build
# download dependencies
- go mod vendor
+ go mod download
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -35,15 +41,16 @@
go build -v \
-trimpath \
-buildmode=pie \
- -mod=vendor \
+ -mod=readonly \
-modcacherw \
- -ldflags "-linkmode external -extldflags $LDFLAGS -X main.version=v${pkgver}" \
+ -ldflags "-linkmode external -extldflags $LDFLAGS \
+ -X main.version=v$pkgver" \
-o build \
./cmd/...
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/lego
More information about the arch-commits
mailing list