summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ad06f77c77bc836bd77f20d2ed8950944ca9116 (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: onny <onny@project-insanity.org>
# Contributor: Dominik Heidler <dominik@heidler.eu>

pkgname=open-ecard-git
pkgver=1.4.1.r4.g35cab3392
pkgrel=1
pkgdesc='Open eCard-App (opencard) is an open source alternative of the AusweisApp'
arch=('any')
url='https://www.openecard.org'
license=("GPL3")
depends=('java-runtime>=11' 'pcsclite')
makedepends=('git' 'maven' 'java-environment>=12')
provides=('open-ecard')
conflicts=('open-ecard')
source=('git+https://github.com/ecsec/open-ecard.git'
				startscript)
b2sums=('SKIP'
        'e3046a9ae478221274ac425ed7afb7bd2c6d21204f8e4e6c46256f8db45d7f4438a62027f6fff86013e3d1ba099b6cade3aff05dd49f3409ab467e438e98cdcd')

pkgver() {
  cd ${pkgname/-git/}
  echo $(git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
}

prepare() {
  cd open-ecard/clients/richclient
  ln -s ../../../src/package src/
}

build() {
  cd open-ecard/clients/richclient
  mvn clean install
}

package() {
  install -Dm755 "startscript" "${pkgdir}"/usr/bin/open-ecard
  install -Dm644 "${srcdir}"/open-ecard/clients/richclient/target/richclient-*.jar "${pkgdir}"/usr/share/java/open-ecard/open-ecard.jar
}