summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabioLolix2023-06-18 12:27:41 +0200
committerFabioLolix2023-06-18 12:27:41 +0200
commit6b57d3bf51426ba20be3b80bbbf6ed9b1c8674f0 (patch)
tree30fa2769a5e140a1986b43295791c0b2ccdeb366
downloadaur-ipscan-git.tar.gz
init
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
-rwxr-xr-xipscan.sh2
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..6fce1b8fff77
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = ipscan-git
+ 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.
+ pkgver = 3.9.1.r0.g42253321
+ pkgrel = 3
+ url = https://angryip.org/
+ arch = any
+ license = GPL2
+ makedepends = git
+ makedepends = gradle
+ makedepends = dpkg
+ makedepends = rpm-tools
+ depends = java-runtime
+ depends = jdk17-openjdk
+ provides = ipscan
+ conflicts = ipscan
+ source = git+https://github.com/angryip/ipscan.git
+ source = ipscan.sh
+ sha256sums = SKIP
+ sha256sums = 8acc44bd1fbeb7d11e979a0933de07c4a63dcb3ce6a0a1679c610ca2e6358393
+
+pkgname = ipscan-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..f561fc5c7bf5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
+# Contributor: max.bra <max dot bra at alice dot it>
+# Contributor: Rorschach <r0schach@lavabit.com>
+
+pkgname=ipscan-git
+pkgver=3.9.1.r0.g42253321
+pkgrel=3
+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=(any)
+license=(GPL2)
+url="https://angryip.org/"
+_java=17
+depends=(java-runtime jdk${_java}-openjdk)
+makedepends=(git gradle dpkg rpm-tools)
+provides=(ipscan)
+conflicts=(ipscan)
+source=("git+https://github.com/angryip/ipscan.git"
+ ipscan.sh)
+sha256sums=('SKIP'
+ '8acc44bd1fbeb7d11e979a0933de07c4a63dcb3ce6a0a1679c610ca2e6358393')
+
+pkgver() {
+ cd ipscan
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ipscan
+ export JAVA_HOME="/usr/lib/jvm/java-${_java}-openjdk"
+ gradle -Dorg.gradle.daemon=false --warning-mode all --stacktrace linux64
+ #./gradlew -Dorg.gradle.daemon=false --warning-mode all --stacktrace linux64
+}
+
+package() {
+ cd ipscan
+ install -Dm755 build/libs/ipscan-linux64-*.jar "${pkgdir}"/usr/share/java/ipscan/ipscan.jar
+ install -Dm755 ../ipscan.sh "${pkgdir}"/usr/bin/ipscan
+
+ install -Dm755 ext/deb-bundle/usr/share/applications/ipscan.desktop -t "${pkgdir}"/usr/share/applications/
+ install -Dm755 ext/deb-bundle/usr/share/metainfo/ipscan.appdata.xml -t "${pkgdir}"/usr/share/metainfo/
+ install -Dm644 resources/images/icon.png "${pkgdir}"/usr/share/pixmaps/ipscan.png
+}
diff --git a/ipscan.sh b/ipscan.sh
new file mode 100755
index 000000000000..49847ba72200
--- /dev/null
+++ b/ipscan.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/java/ipscan/ipscan.jar "$@"