summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12c71e6fbfb29990af35e05b78c715e338ce2695 (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
# Contributor: Sergio Tridente <tioduke (at) gmail (dot) com>

pkgname=bridgedesigner
pkgver=1.16.125
pkgrel=1
pkgdesc="Bridge Design Contest is an Internet-based competition that provides middle school and high school students with a realistic, engaging introduction to engineering"
arch=('any')
url="https://bridgecontest.org/"
license=('GPL')
depends=('java-runtime' "jogl>=2.3.1")
makedepends=('p7zip')
options=(!strip)
source=("Bridge_Designer_2016_Installation_Image.dmg::http://sourceforge.net/projects/wpbdc/files/Current%20Release/jre/Bridge%20Designer%202016%20Installation%20Image.dmg/download"
        bridgedesigner
        bridgedesigner.desktop
        bridgedesigner.png)
sha1sums=('6b0b4f0c7b013b3d2b393eca19271be84955b04c'
          'a6774d80fbe56704aaa96ac7b929c4580419f64a'
          '77e8de95ab519a746902b0b6604bb2dc48873659'
          '6d5f09d9b5991e82a534561f918ca489b3c7744c')
noextract=("Bridge_Designer_2015_Installation_Image.dmg")

prepare() {
  7z x "Bridge_Designer_2016_Installation_Image.dmg"
}

package() {
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/usr/share/{applications,java/bridgedesigner,pixmaps}
  
  install -m755 bridgedesigner $pkgdir/usr/bin/
  install -m644 bridgedesigner.desktop $pkgdir/usr/share/applications/
  install -m644 bridgedesigner.png $pkgdir/usr/share/pixmaps/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/AbsoluteLayout.jar $pkgdir/usr/share/java/bridgedesigner/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/beansbinding-1.2.1.jar $pkgdir/usr/share/java/bridgedesigner/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/bsaf-1.9.1.jar $pkgdir/usr/share/java/bridgedesigner/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/jh.jar $pkgdir/usr/share/java/bridgedesigner/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/swing-layout-1.0.4.jar $pkgdir/usr/share/java/bridgedesigner/
  install -m644 "Bridge Designer 2016 (2nd Ed) Installation Image/Bridge Designer 2016.app/Contents/Java"/WPBD.jar $pkgdir/usr/share/java/bridgedesigner/
}