summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD22
2 files changed, 14 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9e31b4a972e..b9c11b5e36a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
pkgbase = gitlab-pages
pkgdesc = GitLab Pages daemon used to serve static websites for GitLab users
- pkgver = 1.16.0
+ pkgver = 1.17.0
pkgrel = 1
url = https://gitlab.com/gitlab-org/gitlab-pages
- arch = i686
arch = x86_64
+ arch = i686
license = MIT
- makedepends = go
+ makedepends = go-pie
backup = etc/gitlab-pages/config.cfg
- source = gitlab-pages-v1.16.0.tar.gz::https://gitlab.com/gitlab-org/gitlab-pages/repository/v1.16.0/archive.tar.gz
+ source = gitlab-pages-v1.17.0.tar.gz::https://gitlab.com/gitlab-org/gitlab-pages/repository/v1.17.0/archive.tar.gz
source = config.cfg
source = gitlab-pages.service
source = service.env
- sha256sums = 4a90f6626a3cad402fe7117c6f1b6aa256c5da5d10002a13786fad662420d288
+ sha256sums = 09051ce3c4fc85c45c3bea05e77e13933f1221ed84b3181feda4915dfa8b9c54
sha256sums = 5e2135793d43ec2f3343b49cf45b00f44ef74e813c7d152d2e0ed46af5c25122
sha256sums = ae62235f0fd66eaed7ad74048daf21b92058aba90e40fc2d3e7a684e9883c32e
sha256sums = fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96
diff --git a/PKGBUILD b/PKGBUILD
index 592c45b97b9..9f061433638 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,37 +3,33 @@
# Useful: https://gitlab.com/gitlab-org/gitlab/issues/17584
pkgname=gitlab-pages
-pkgver=1.16.0
+pkgver=1.17.0
pkgrel=1
pkgdesc='GitLab Pages daemon used to serve static websites for GitLab users'
url="https://gitlab.com/gitlab-org/$pkgname"
license=('MIT')
-arch=('i686' 'x86_64')
-depends=()
-makedepends=('go')
+arch=('x86_64' 'i686')
+makedepends=('go-pie')
source=("$pkgname-v$pkgver.tar.gz::https://gitlab.com/gitlab-org/$pkgname/repository/v$pkgver/archive.tar.gz"
'config.cfg'
"$pkgname.service"
'service.env')
backup=("etc/$pkgname/config.cfg")
-sha256sums=('4a90f6626a3cad402fe7117c6f1b6aa256c5da5d10002a13786fad662420d288'
+sha256sums=('09051ce3c4fc85c45c3bea05e77e13933f1221ed84b3181feda4915dfa8b9c54'
'5e2135793d43ec2f3343b49cf45b00f44ef74e813c7d152d2e0ed46af5c25122'
'ae62235f0fd66eaed7ad74048daf21b92058aba90e40fc2d3e7a684e9883c32e'
'fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96')
-prepare( ){
- cd "$pkgname-v$pkgver-"*
-}
-
build() {
cd "$pkgname-v$pkgver-"*
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath"
make
}
package() {
cd "$pkgname-v$pkgver-"*
- install -Dm 755 "$pkgname" -t "$pkgdir/usr/bin"
- install -Dm 644 "$srcdir/config.cfg" -t "$pkgdir/etc/$pkgname"
- install -Dm 644 "$srcdir/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
- install -Dm 644 "$srcdir/service.env" -t "$pkgdir/etc/$pkgname"
+ 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"
}