summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8611ce5123f055727689bd88ed82f6dbff77825 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Damien Guihal <dguihal@gmail.com>
# Do not forget SRCINFO :  makepkg --printsrcinfo > .SRCINFO
pkgname=soapui
pkgver=5.6.0
pkgrel=1
pkgdesc="A graphical Java program for inspecting, invoking, monitoring, simulating/mocking and functional/load/compliance/surveillance testing of REST/WADL and SOAP/WSDL-based Web Services over HTTP."
arch=('i686' 'x86_64')
url="http://www.soapui.org/"
license=('EUPL V.1.1')
groups=()
depends=('java-environment>=12' 'hicolor-icon-theme')
optdepends=('java-openjfx: Open JFX for Internal browser')
source=("https://s3.amazonaws.com/downloads.eviware/soapuios/$pkgver/SoapUI-$pkgver-linux-bin.tar.gz"
        "http://freeapps.co.uk.s3.amazonaws.com/images/thumbnails/$pkgname.png"
        "$pkgname.desktop"
        "$pkgname")
#generate with 'makepkg -g'
md5sums=('10be0158efbe3ab77eaf19c664454f03'
         '3cc08aca62edb502fc53013edf69f640'
         'f0e2fa73dd9a7c271e38c179b4e284a3'
         'b1eb2bcf5a0ff86bf128d13dc41d83de')
sha1sums=('8fdf1dddd2250fa14fe5878a7271f6693427de10'
          '9f12e2f0db63083a3fa4e5b6fdfd10c8dfd038c0'
          '4ced7d28c3c5880db600bf4769fdb1a3dc3a6fce'
          '89c2d3aabacb88343d60f57f4fe47546ab95ccf5')

build() {
  cd "${srcdir}/SoapUI-${pkgver}"

  #Correction du bug jxplorer
  sed -i -e 's/^java/${JAVA_HOME}\/bin\/java/' bin/soapui.sh
}

package() {
  mkdir -p "${pkgdir}/usr/share/soapui"
  mkdir -p "${pkgdir}/usr/bin"
  cd "${srcdir}/SoapUI-${pkgver}" || exit 1
  cp -R ./* "${pkgdir}/usr/share/soapui"

  cd "${srcdir}" || exit 1
  install "${pkgname}.desktop" -m 0644 -D "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install "${pkgname}.png" -m 0644 -D "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png"
  install "${pkgname}" -m 0755 -D "${pkgdir}/usr/bin/soapui"
  # Mise a jour de la version
  sed -i -e "s/#SOAPUIVER#/${pkgver}/" "${pkgdir}/usr/bin/soapui"

  # Seems to cause some issues "java.lang.NoSuchMethodError: 'boolean org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()"
  #  fixed by removing it
  rm "${pkgdir}/usr/share/soapui/lib/xmlbeans-xmlpublic-2.6.0.jar"
  
  chmod 0755 "${pkgdir}/usr/share/soapui/bin/soapui.sh"
  find "${pkgdir}/usr/share/soapui/wsi-test-tools" -name '*.sh' -exec chmod 0755 {} \;
  cd "${pkgdir}/usr/share/soapui" || exit 1
  ln -sf bin/starter-page.html .
}

# vim:set ts=2 sw=2 et: