summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2021-07-27 12:29:34 +0300
committerCaleb Maclennan2021-07-27 12:29:34 +0300
commitb2309d5e6a046481a5ca0f70f2f74155d004f08d (patch)
tree73b4a2dc2d1dbe188d83773a1ef8c4787dbd2ea6 /PKGBUILD
parentd7196a3a03a7fa3f3a6d346f6046fabb08d6a989 (diff)
downloadaur-b2309d5e6a046481a5ca0f70f2f74155d004f08d.tar.gz
upgpkg: gitlab-pages 1.41.0-1
upstream release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 24 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7d96b882205..8042ea01c4d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,42 +3,42 @@
# Useful: https://gitlab.com/gitlab-org/gitlab/issues/17584
pkgname=gitlab-pages
-pkgver=1.40.0
+pkgver=1.41.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=('x86_64' 'i686')
-makedepends=('go')
+license=(MIT)
+arch=(x86_64 i686)
+makedepends=(go)
source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2"
"$pkgname.service"
'service.env')
backup=("etc/$pkgname/config.cfg"
- "etc/$pkgname/service.env")
-sha256sums=('2dd4aff570ac16a20de490669399431e37a5586b201ddba3230a7003083a285e'
+ "etc/$pkgname/service.env")
+sha256sums=('77d68532ed024d42ddcdb7ce74156b347927cb7dbcd47d3cda3459313a44a681'
'df2bb3607f500daf95ac7c3ddf2470c794a72c66ba0770029753f859f1c53082'
'fd8f9b60e2247077ad00765904237b6b1c36b11a952cd3b1ad88e74417b82a96')
build() {
- cd "$pkgname-v$pkgver"
- export GOPATH="$srcdir"
- export CGO_ENABLED=0
- go build \
- -trimpath \
- -buildmode=exe \
- -mod=readonly \
- -modcacherw \
- -ldflags "-extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
- .
- ./$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
+ cd "$pkgname-v$pkgver"
+ export GOPATH="$srcdir"
+ export CGO_ENABLED=0
+ go build \
+ -trimpath \
+ -buildmode=exe \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-extldflags \"$LDFLAGS\" -X main.VERSION=$pkgver" \
+ .
+ ./$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 ../service.env
+ install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service"
}