blob: 1be23deca4c251457a0a66560584f19c86cdba1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: HHL <https://aur.archlinux.org/account/HHL/>
pkgname='gematik-authenticator-git'
_pkgname='gematik-authenticator'
_name='authenticator'
_extracted='extracted'
pkgver=v4.11.0.1.r0.gcc2181d
pkgrel=1
pkgdesc="The tool for secure authenticator of digital applications of the German healthcare system"
arch=('x86_64')
license=('EUPL-1.2')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
url="https://fachportal.gematik.de/hersteller-anbieter/komponenten-dienste/authenticator"
options=('!emptydirs')
makedepends=('npm' 'libxcrypt-compat')
source=("${pkgname}"::"git+https://github.com/janne-koschinski/app-Authenticator#branch=linux")
noextract=(${source[@]%%::*})
sha256sums=('SKIP')
install=gematik-authenticator-git.install
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
sed -i "s/'AppImage', 'deb', 'rpm'/'pacman'/" builder.config.js
npm install
}
build() {
cd "$srcdir/$pkgname"
npm run mock:build
version=$(cat package.json | jq --raw-output '.version')
cd -
mkdir -p "$_extracted"
tar xaf "$srcdir/$pkgname/release/authenticator-$version.pacman" --directory="$_extracted"
}
package() {
cd "$_extracted"
cp -r opt $pkgdir/
cp -r usr $pkgdir/
find $pkgdir -type d -exec chmod 755 {} \;
chmod 755 "$pkgdir/opt/gematik Authenticator/gematik-authenticator"
install -Dm644 "$srcdir/$pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|