summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14c93d2bcf51b5170c78618efb5a945f566f8b3c (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
#Maintainer: Raimar Buehmann <raimar _at_ buehmann _dot_ de>

pkgname=eclipse-spotbugs
pkgver=3.1.13
_buildtime=201903011226-5013623
pkgrel=2
pkgdesc='SpotBugs plugin for Eclipse IDE to look for bugs in Java programs by static code analysis, a successor of FindBugs.'
arch=('any')
url='https://github.com/spotbugs/spotbugs/'
license=('LGPL')
depends=('eclipse>=4.5.0')
options=('!strip')
source=(
	"feature.jar::https://spotbugs.github.io/eclipse-stable-latest/features/com.github.spotbugs.plugin.eclipse_${pkgver}.${_buildtime}.jar"
	"plugin.jar::https://spotbugs.github.io/eclipse-stable-latest/plugins/com.github.spotbugs.plugin.eclipse_${pkgver}.${_buildtime}.jar"
)
noextract=(feature.jar plugin.jar)
sha256sums=('a13b500c971c1926afad4982b0be550423dc540f62ccbd869a59ee043cb81cf5'
            '373c7cc4c2a00b3ffd8678251f2d31fc907ee4c202474e3f318969a1838f0daf')

package() {
	_dest=$pkgdir/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse
	_subfolder=$_dest/features/com.github.spotbugs.plugin.eclipse_${pkgver}.${_buildtime}
	install -dm755 $_subfolder
	cd $_subfolder
	# extract feature
	jar xf $srcdir/feature.jar || return 1
	# copy plugin
	install -Dm644 $srcdir/plugin.jar $_dest/plugins/com.github.spotbugs.plugin.eclipse_${pkgver}.${_buildtime}.jar
}