summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 6 insertions, 12 deletions
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"
}