aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ad03758b9addbad73bccdbffb343e511aa7a06f (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
# Maintainer: Anti Räis <antirais at gmail dot com>

pkgname=cdoc4j-util
pkgver=1.5
pkgrel=2
pkgdesc='Command line utility for working with CDOC documents.'
arch=('any')
url='https://github.com/open-eid/cdoc4j/blob/master/util/README.md'
license=('GPL2')
depends=('java-runtime>=8')
makedepends=('git')
source=(
    "https://github.com/open-eid/cdoc4j/releases/download/$pkgver/$pkgname-$pkgver.zip"
    'cdoc4j-util.sh'
)
sha256sums=(
    '74af0de339650dc95fe91694d2f6a348f4163af5f9800df541087c11f8285004'
    'e9ccd058c87b331b08a1ce30e73f03ea5d65657123d57d4524905a3c14bca08c'
)

package() {
    cd $srcdir

    install -d "$pkgdir/usr/bin"
    install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
    install -Dm755 "$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
    install -Dm755 "bcprov-jdk18on.jar" "$pkgdir/usr/share/java/$pkgname/"
}