diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 8 insertions, 8 deletions
@@ -1,20 +1,19 @@ pkgbase = authelia pkgdesc = The Cloud ready multi-factor authentication portal for your Apps. pkgver = 4.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/authelia/authelia arch = x86_64 arch = aarch64 arch = armv7h license = Apache-2.0 - makedepends = curl makedepends = gcc makedepends = git makedepends = go makedepends = nodejs makedepends = yarn - provides = authelia conflicts = authelia-bin + conflicts = authelia-git backup = etc/authelia/configuration.yml source = authelia-4.2.0.tar.gz::https://github.com/authelia/authelia/archive/v4.2.0.tar.gz source = authelia.service @@ -1,21 +1,22 @@ # Maintainer: Amir Zarrinkafsh <nightah at me dot com> pkgname=authelia pkgver=4.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="The Cloud ready multi-factor authentication portal for your Apps." arch=('x86_64' 'aarch64' 'armv7h') url="https://github.com/authelia/authelia" license=('Apache-2.0') makedepends=( - 'curl' 'gcc' 'git' 'go' 'nodejs' 'yarn' ) -provides=('authelia') -conflicts=('authelia-bin') +conflicts=( + 'authelia-bin' + 'authelia-git' +) backup=('etc/authelia/configuration.yml') source=( @@ -31,7 +32,7 @@ sha256sums=( build() { cd "$srcdir/$pkgname-$pkgver" sed -i "s/__BUILD_TAG__/v${pkgver}/" cmd/authelia/constants.go - sed -i "s/__BUILD_COMMIT__/$(curl https://api.github.com/repos/${pkgname}/${pkgname}/git/refs/tags/v${pkgver} | awk -F '["]' '/"sha"/{print $4}')/" cmd/authelia/constants.go + sed -i "s/__BUILD_COMMIT__/$(git rev-parse --verify v${pkgver})/" cmd/authelia/constants.go go build -ldflags '-w' -trimpath -o authelia cmd/authelia/*.go cd web yarn install --frozen-lockfile |