49 lines
1.8 KiB
Bash
49 lines
1.8 KiB
Bash
pkgname=ipscan
|
|
pkgver=3.9.1
|
|
pkgrel=3
|
|
pkgdesc='Fast and friendly network scanner'
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL2')
|
|
url='https://angryip.org'
|
|
depends=('java-runtime')
|
|
makedepends=('jre17-openjdk' 'jdk17-openjdk' 'git')
|
|
|
|
source=(
|
|
"git+https://github.com/angryip/${pkgname}.git#tag=${pkgver}"
|
|
'build.gradle.patch'
|
|
'google-analytics-removal.patch'
|
|
"${pkgname}.sh"
|
|
"${pkgname}.desktop"
|
|
)
|
|
|
|
sha512sums=(
|
|
'SKIP'
|
|
'0858ea8747b9339da3d22d3a8176da25bffce1eac54d6b3ee5d6ced549c76db48f9479594ee57130b14aef2cc213abf06c286e389c058ef73ef1ccd24d08fda5'
|
|
'c494b4a29547e122805053645df948f9ad80d3ecfe7638eeb45f38dec983cb5221888713649311ea55a9c3ebcf87e72903990ff9b2796f07721f444bfdce9afa'
|
|
'9f0227b7b607bda5773a157c566bed3373654b89e665a69ac48bec48556277fd64d65d56af2ec421c59d983fa93903f2c4b191835b58731664389d254a004c59'
|
|
'0e3e47dc0bc97695221977a077548e8ada397d264581411d9018e562b782113a1dbde9d0b017ae61418d61e0e6e9182feca04e88c335f942926164b0acbc09f8'
|
|
)
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}"
|
|
patch < ../build.gradle.patch
|
|
git apply ../google-analytics-removal.patch
|
|
sed -i "s|^version = .*|version = '${pkgver}'|" build.gradle
|
|
sed -i -E "s|^( *'Version':) version,|\1 '${pkgver}',|g" build.gradle
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}"
|
|
unset _JAVA_OPTIONS
|
|
export PATH=/usr/lib/jvm/default/bin:$PATH
|
|
export PATH=/usr/lib/jvm/java-17-openjdk/bin:$PATH
|
|
GRADLE_USER_HOME="${srcdir}" ./gradlew current
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}"
|
|
install -Dm755 "../${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
|
|
install -Dm644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
install -Dm644 resources/images/icon256.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
|
|
install -Dm644 build/libs/ipscan-*-${pkgver}.jar "${pkgdir}/opt/${pkgname}/${pkgname}.jar"
|
|
}
|