blob: 0af2c7934d2bc0f80cda0b2a590a4550db65f328 (
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
|
# Maintainer: amtoaer <amtoaer@outlook.com>
pkgname=niutrans-cli
pkgver=1.5
pkgrel=2
pkgdesc="niutrans command line interface."
arch=('x86_64')
depends=('jre')
url="https://github.com/amtoaer/Niutrans-Cli"
license=('MIT')
source=(
"LICENSE::https://raw.githubusercontent.com/amtoaer/NiuTrans-Cli/v$pkgver/LICENSE"
"NiuTrans-Cli-$pkgver.jar::https://github.com/amtoaer/NiuTrans-Cli/releases/download/v$pkgver/NiuTrans-Cli-$pkgver.jar"
)
md5sums=(
'31fad0aacc583d621612630ce8f5a26c'
'edad4b99c24ea407939ae14a0a222812'
)
package(){
echo '#!/usr/bin/java -jar' > niu
cat $srcdir/NiuTrans-Cli-$pkgver.jar >> niu
install -D -m 755 $srcdir/niu $pkgdir/usr/bin/niu
install -D -m 644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|