summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b274abad763..d17896f3302 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,19 +4,18 @@
pkgname=gitlab-pages
pkgver=1.38.0
-pkgrel=2
+pkgrel=3
pkgdesc='GitLab Pages daemon used to serve static websites for GitLab users'
url="https://gitlab.com/gitlab-org/$pkgname"
license=('MIT')
arch=('x86_64' 'i686')
makedepends=('go')
source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2"
- 'config.cfg'
"$pkgname.service"
'service.env')
-backup=("etc/$pkgname/config.cfg")
+backup=("etc/$pkgname/config.cfg"
+ "etc/$pkgname/service.env")
sha256sums=('02b6d5329d62282e5caa31751c855af54456f363284dd467550a31ee864dd7bf'
- '5e2135793d43ec2f3343b49cf45b00f44ef74e813c7d152d2e0ed46af5c25122'
'ae62235f0fd66eaed7ad74048daf21b92058aba90e40fc2d3e7a684e9883c32e'
'fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96')
@@ -30,11 +29,15 @@ build() {
-modcacherw \
-ldflags "-extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
.
+ ./$pkgname -help 2>&1 |
+ sed -ne '/=/{s/^ -//;s/\([^:]*\): \(.*\)/# \2\n#\1\n/;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/" "$srcdir/"{config.cfg,service.env}
+ install -Dm644 -t "$pkgdir/etc/$pkgname/" config.cfg "$srcdir/service.env"
install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
}