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

pkgname=eclipse-spotbugs
pkgver=3.1.11
_buildtime=201812210434-554d102
pkgrel=1
pkgdesc='SpotBugs plugin for Eclipse IDE to look for bugs in Java code by static code analysis'
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.feature_${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=('653cd15370db01244bc00c1521fedc8019a09befd1be8d5c4a1b556d7fa54a32')

package() {
	_dest=$pkgdir/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse
#	_subfolder=$_dest/features/net.sourceforge.pmd.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
}