summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-05-11 15:44:35 +0300
committerCaleb Maclennan2021-05-11 15:44:35 +0300
commit080e0817b3b6d06db117a48e39c3d37f518271b1 (patch)
tree34d2a40303241da561905dd24f0d6af316da7f1f
parent0533b0bd1755444e2c5fe8c1bf330ca2c83c4185 (diff)
downloadaur-080e0817b3b6d06db117a48e39c3d37f518271b1.tar.gz
upgpkg: gitlab-pages 1.38.0-5
Disable CGO so we get a static binary again
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD21
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f51375a3bc..65d5bfba324 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gitlab-pages
pkgdesc = GitLab Pages daemon used to serve static websites for GitLab users
pkgver = 1.38.0
- pkgrel = 4
+ pkgrel = 5
url = https://gitlab.com/gitlab-org/gitlab-pages
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 3380633a332..137483529b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=gitlab-pages
pkgver=1.38.0
-pkgrel=4
+pkgrel=5
pkgdesc='GitLab Pages daemon used to serve static websites for GitLab users'
url="https://gitlab.com/gitlab-org/$pkgname"
license=('MIT')
@@ -20,8 +20,9 @@ sha256sums=('02b6d5329d62282e5caa31751c855af54456f363284dd467550a31ee864dd7bf'
'fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96')
build() {
- cd "$pkgname-v$pkgver"
+ cd "$pkgname-v$pkgver"
export GOPATH="$srcdir"
+ export CGO_ENABLED=0
go build \
-trimpath \
-buildmode=pie \
@@ -29,15 +30,15 @@ build() {
-modcacherw \
-ldflags "-extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
.
- ./$pkgname -help 2>&1 |
- sed -ne '/=/{s/^ -//;s/\([^:]*\): \(.*\)/# \2\n#\1\n/;/config=/d;p}' |
- sed -e '/daemon-.id=/{s/^#//;s/=0/=105/}' \
- > config.cfg
+ ./$pkgname -help 2>&1 |
+ sed -ne '/=/{s/^ -//;s/\([^:]*\): \(.*\)/# \2\n#\1\n/;/config=/d;s/=""$/=string/;p}' |
+ sed -e '/daemon-.id=/{s/^#//;s/=0/=105/}' \
+ > config.cfg
}
package() {
- cd "$pkgname-v$pkgver"
- install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
- install -Dm644 -t "$pkgdir/etc/$pkgname/" config.cfg "$srcdir/service.env"
- install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
+ cd "$pkgname-v$pkgver"
+ install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
+ install -Dm644 -t "$pkgdir/etc/$pkgname/" config.cfg "$srcdir/service.env"
+ install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
}