summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a6944b8eea0493c58e23150acc4a0fdfe0f5a9c (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
# Maintainer: Jah Way <jahway603 at protonmail dot com>

pkgname=peergos-git
_pkgname=peergos
pkgver=0.14.1.ac4bba1
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')
makedepends=('ant' 'git')
depends=('java-environment>=11'
         'java-environment-openjdk>=11') # have to specify java 11 or greater
provides=('peergos')
conflicts=('peergos')
source=("git+$url"
        "$_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=('SKIP'
            '37c237b578c5a1828cae720daaf6059e0451c0f9ab618089b9e8b3d972d327a6'
            '57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6'
            '589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2')

build() {
  cd web-ui
  ant dist
}

# followed guidelines here
# https://wiki.archlinux.org/title/Java_package_guidelines
package() {
  install -Dm755 "${srcdir}/web-ui/server/Peergos.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"
}