blob: bd39583eb5a56544a8830686f811fcfcbe54ca91 (
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
|
# Maintainer: Jah Way <jahway603 at protonmail dot com>
pkgname=peergos
pkgver=0.22.0
pkgrel=1
pkgdesc="A p2p, secure file storage, social network and application protocol"
url="https://github.com/Peergos/web-ui"
arch=('x86_64')
license=('AGPL3')
depends=('java-environment>=11'
'java-environment-openjdk>=11') # have to specify java 11 or greater
# unable to determine how to not extract jar, noextract() array did not work
source=("$pkgname-$pkgver.jar::$url/releases/download/v$pkgver/Peergos.jar"
"$pkgname.sh"
"$pkgname-LICENSE::https://raw.githubusercontent.com/Peergos/Peergos/master/Licence.txt"
"$pkgname-webui-LICENSE::https://raw.githubusercontent.com/Peergos/web-ui/master/LICENSE")
sha256sums=('2632411cbdb0740b7e57dc00ba3bc121d030fce01ef3db07b18b2ff9c5c48d36'
'37c237b578c5a1828cae720daaf6059e0451c0f9ab618089b9e8b3d972d327a6'
'57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6'
'589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2')
# followed guidelines here
# https://wiki.archlinux.org/title/Java_package_guidelines
package() {
install -Dm755 "${srcdir}/$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
install -Dm755 "${srcdir}/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "${srcdir}/$pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/$pkgname-LICENSE"
install -Dm644 "${srcdir}/$pkgname-webui-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/$pkgname-webui-LICENSE"
}
|