summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3acddc8f82c0066d24aa29cc361c62ff3782dcee (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
# Contributor: Rorschach <r0schach@lavabit.com>
# Maintainer:  max.bra <max dot bra at alice dot it>

pkgname=ipscan-bin
_pkgintname=ipscan
pkgver=3.9.1
_pkgintver=3.9.1
pkgrel=2
pkgdesc='Angry IP Scanner (or simply ipscan) is an open-source and cross-platform network scanner designed to be fast and simple to use. It scans IP addresses and ports as well as has many other features.'
arch=('i686' 'x86_64')
license=('GPL2')
url="https://angryip.org/"
depends=('java-runtime>=11')
provides=(ipscan)
conflicts=(ipscan)

[[ $CARCH == "i686" ]] && _intarch=linux
[[ $CARCH == "x86_64" ]] && _intarch=linux64

source=(ipscan.png ipscan ipscan.desktop)
source_i686+=(https://github.com/angryip/ipscan/releases/download/$_pkgintver/ipscan-$_intarch-$_pkgintver.jar)
source_x86_64+=(https://github.com/angryip/ipscan/releases/download/$_pkgintver/ipscan-$_intarch-$_pkgintver.jar)

md5sums=('59de9b8055fe037c77bf8339eee31b85'
         '5b1c941c32a444803677a2061aa55a70'
         'b9af5f626689374ff6018b150aada64d')
md5sums_i686=('140fa1898aae905535085a38fff9fa91')
md5sums_x86_64=('140fa1898aae905535085a38fff9fa91')

noextract=($(for i in ${source[@]}; do basename $i; done) ipscan-$_intarch-$_pkgintver.jar)

package() {
  cd "$srcdir"
  install -Dm755 $_pkgintname $pkgdir/usr/bin/$_pkgintname
  install -Dm644 $_pkgintname.png $pkgdir/usr/share/pixmaps/$_pkgintname.png
  install -Dm644 $_pkgintname.desktop $pkgdir/usr/share/applications/$_pkgintname.desktop
  install -Dm644 $_pkgintname-$_intarch-$_pkgintver.jar $pkgdir/usr/share/java/$_pkgintname/$_pkgintname-$_intarch-$_pkgintver.jar
}