summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-05-07 22:35:31 +0300
committerCaleb Maclennan2021-05-07 22:35:31 +0300
commitadde2ce9a187572649ea0c377bd566f1647c935d (patch)
tree06f08e2681985eb73282cb136adc70696406d5ac
parente817d3e7cfb84638a9292d91575f3fcaa72fef34 (diff)
downloadaur-adde2ce9a187572649ea0c377bd566f1647c935d.tar.gz
upgpkg: gitlab-pages 1.38.0-1
upstream release
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 9 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f3ca1f9215..53099cdbf02 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gitlab-pages
pkgdesc = GitLab Pages daemon used to serve static websites for GitLab users
- pkgver = 1.20.0
+ pkgver = 1.38.0
pkgrel = 1
url = https://gitlab.com/gitlab-org/gitlab-pages
arch = x86_64
@@ -8,11 +8,11 @@ pkgbase = gitlab-pages
license = MIT
makedepends = go
backup = etc/gitlab-pages/config.cfg
- source = https://gitlab.com/gitlab-org/gitlab-pages/-/archive/v1.20.0/gitlab-pages-v1.20.0.tar.bz2
+ source = https://gitlab.com/gitlab-org/gitlab-pages/-/archive/v1.38.0/gitlab-pages-v1.38.0.tar.bz2
source = config.cfg
source = gitlab-pages.service
source = service.env
- sha256sums = 1ddf416ca0c100de72a1cb010cbdd6b822f8e9489b49038a202409febcd77e1c
+ sha256sums = 02b6d5329d62282e5caa31751c855af54456f363284dd467550a31ee864dd7bf
sha256sums = 5e2135793d43ec2f3343b49cf45b00f44ef74e813c7d152d2e0ed46af5c25122
sha256sums = ae62235f0fd66eaed7ad74048daf21b92058aba90e40fc2d3e7a684e9883c32e
sha256sums = fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96
diff --git a/PKGBUILD b/PKGBUILD
index 8d9606b150c..e4ca02f3c98 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Useful: https://gitlab.com/gitlab-org/gitlab/issues/17584
pkgname=gitlab-pages
-pkgver=1.20.0
+pkgver=1.38.0
pkgrel=1
pkgdesc='GitLab Pages daemon used to serve static websites for GitLab users'
url="https://gitlab.com/gitlab-org/$pkgname"
@@ -15,17 +15,11 @@ source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2"
"$pkgname.service"
'service.env')
backup=("etc/$pkgname/config.cfg")
-sha256sums=('1ddf416ca0c100de72a1cb010cbdd6b822f8e9489b49038a202409febcd77e1c'
+sha256sums=('02b6d5329d62282e5caa31751c855af54456f363284dd467550a31ee864dd7bf'
'5e2135793d43ec2f3343b49cf45b00f44ef74e813c7d152d2e0ed46af5c25122'
'ae62235f0fd66eaed7ad74048daf21b92058aba90e40fc2d3e7a684e9883c32e'
'fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96')
-prepare() {
- cd "$pkgname-v$pkgver"
- export GOPATH="$srcdir"
- go mod download
-}
-
build() {
cd "$pkgname-v$pkgver"
export GOPATH="$srcdir"
@@ -34,13 +28,13 @@ build() {
-buildmode=pie \
-mod=readonly \
-modcacherw \
- -ldflags "-extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
+ -ldflags "-linkmode external -extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
.
}
package() {
cd "$pkgname-v$pkgver"
- install -Dm 755 -t "$pkgdir/usr/bin/" "$pkgname"
- install -Dm 644 -t "$pkgdir/etc/$pkgname/" "$srcdir/"{config.cfg,service.env}
- install -Dm 644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
+ install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
+ install -Dm644 -t "$pkgdir/etc/$pkgname/" "$srcdir/"{config.cfg,service.env}
+ install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
}