blob: 595da4ed97329bd7ee24134e3b2203b0c480d416 (
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: maturain <maturain@gmail.com>
pkgname=msgviewer-lolo101
pkgver=1.8.6
pkgrel=1
pkgdesc="A program to view msg file from outlook (forked version by lolo101)"
arch=(any)
url="https://github.com/lolo101/MsgViewer/"
license=('GPLv3')
depends=(java-runtime=11)
makedepends=(jdk11-openjdk)
conflicts=("msgviewer")
source=("https://github.com/lolo101/MsgViewer/archive/refs/tags/msgviewer-${pkgver}.tar.gz"
"msgviewer")
sha256sums=('16f6afc8dc2451fe41ad1de3332806bdeb6ce481fbdf8929a13c823e884560ba'
'3196fb7a19b3867663bc7cc22eaae3d725af1e7d17005cdb7fa6da2d13036521')
build() {
cd ${srcdir}/MsgViewer-msgviewer-${pkgver}/
./mvnw package -DskipTests=true
}
package() {
path="opt/msgviewer"
mkdir -p $pkgdir/${path}
cp $srcdir/msgviewer $pkgdir/${path}/
cp $srcdir/MsgViewer-msgviewer-${pkgver}/MSGViewer/target/msgviewer.jar $pkgdir/${path}/
mkdir -p $pkgdir/usr/bin
ln -s "/${path}/msgviewer" "$pkgdir/usr/bin/msgviewer"
}
|