35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=gitlab-pages
|
|
pkgver=17.0.4
|
|
_gittag="v$pkgver"
|
|
pkgrel=0
|
|
pkgdesc="A daemon used to serve static websites for GitLab users"
|
|
url="https://gitlab.com/gitlab-org/gitlab-pages/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go>=1.5"
|
|
source="
|
|
https://gitlab.com/gitlab-org/gitlab-pages/-/archive/$_gittag/gitlab-pages-$_gittag.tar.gz
|
|
ungit-makefile.patch
|
|
$pkgname.initd
|
|
"
|
|
subpackages="$pkgname-openrc"
|
|
builddir="$srcdir"/$pkgname-$_gittag
|
|
|
|
build() {
|
|
make VERSION=$pkgver REVISION=$pkgrel GOPATH="$srcdir" CGO_ENABLED=0
|
|
}
|
|
|
|
package() {
|
|
install -D -m 755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
|
install -m755 -D "$srcdir"/$pkgname.initd \
|
|
"$pkgdir"/etc/init.d/gitlab.pages
|
|
}
|
|
|
|
sha512sums="
|
|
fde33d01f7b3810a9a094c09fce19976c41a2ccc9eaf720a0f4dd285eb2d0f35de8d2d607cdbaa670221711919043d681fd3fda6e14d67ae1454619746c1e453 gitlab-pages-v17.0.4.tar.gz
|
|
710a9b652327e57e620c2bdb02bf912a6f61044eaaf61d36c6612284e9b951d2ac6f5eef77dfea16a0cde328bd4c556d9e47791c560139c27cb9659076f809b1 ungit-makefile.patch
|
|
20bc66c1c3548568ed353ca8d584f9108b9688f9375f212a18efc7b8386fdaafb3b2dc9e865f21c7f8fd31ada6e91842a8bb8d397f64851d853bb0de3e0e60bb gitlab-pages.initd
|
|
"
|