blob: 75e29970d828c3ea7980be3fcc77c291fb57e51a (
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: Victor A. Santos <victoraur.santos@gmil.com>
_pkgname=thesubberkt
pkgname=thesubberkt-git
pkgver=v0.1.1a.r3.gb193577
pkgrel=2
pkgdesc="thesubdb.com client for download subtiltes"
arch=('any')
url="https://gitlab.com/vaurelios/TheSubberKt"
license=('GPL')
depends=('java-runtime' 'java-openjfx')
makedepends=('java-environment' 'gradle')
source=('thesubberkt.sh'
"$_pkgname::git+https://gitlab.com/vaurelios/TheSubberKt.git")
md5sums=('6582218cac7bb375342735382cbe08f9'
'SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
gradle installDist
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 "../thesubberkt.sh" "$pkgdir/usr/bin/thesubberkt"
install -Dm644 "data/thesubberkt.desktop" "$pkgdir/usr/share/applications/thesubberkt.desktop"
cd "$srcdir/$_pkgname/build/install/thesubberkt/lib"
for file in *.jar; do
install -Dm644 "$file" "$pkgdir/usr/share/java/thesubberkt/$file"
done
}
|