blob: 2fc572969bde960dd38b88c17c237088b3d5b06a (
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
|
# Maintainer: Ben Denhartog <ben@denhartog.io>
# Contributor: Wayne Hartmann (DH4) <wayne@bitstorm.pw>
pkgname=protocase-designer
pkgver=4.5.2
pkgrel=1
pkgdesc="The fastest and easiest way to design, price, and build custom electronics enclosures."
arch=('i686' 'x86_64')
url="http://www.protocasedesigner.com/"
depends=('java-runtime-common' 'jre7-openjdk')
#install=protocase-designer.install
license=('custom')
source=('http://www.protocasedesigner.com/RELEASE/protocaseDesigner-linux-i586-'$pkgver'.tar.gz'
ProtocaseDesigner.desktop)
md5sums=('790133b8c4bf8baea3691024b0c9105b'
'f66d02094444eac61f468371589fcc9c')
[ "$CARCH" = "x86_64" ] && source=('https://www.protocasedesigner.com/RELEASE/protocaseDesigner-linux-amd64-'$pkgver'.tar.gz'
ProtocaseDesigner.desktop)
[ "$CARCH" = "x86_64" ] && md5sums=('ccd28b8c4daab6142ff3212a7920c3d8'
'f66d02094444eac61f468371589fcc9c')
package() {
install -d $pkgdir/usr/local/lib/
cp -R $srcdir/jdesigner/Protocase\ Designer $pkgdir/usr/local/lib
install -d $pkgdir/usr/local/share/Protocase\ Designer/
cp -R $srcdir/jdesigner/library $pkgdir/usr/local/share/Protocase\ Designer/
install -d $pkgdir/usr/local/share/pixmaps/
cp $srcdir/jdesigner/Protocase\ Designer.ico $pkgdir/usr/local/share/pixmaps/ProtocaseDesigner.ico
install -d $pkgdir/usr/local/bin/
echo '#/bin/sh' > $pkgdir/usr/local/bin/ProtocaseDesigner
echo "install -d ~/ProtocaseDesigner/" >> $pkgdir/usr/local/bin/ProtocaseDesigner
echo "mkdir ~/ProtocaseDesigner/UserLibrary" >> $pkgdir/usr/local/bin/ProtocaseDesigner
echo "LD_LIBRARY_PATH=/usr/local/lib/Protocase\ Designer/:/usr/local/lib/Protocase\ Designer/lib/:\ $LD_LIBRARY_PATH java -jar /usr/local/lib/Protocase\ Designer/jdesigner.jar >> ~/ProtocaseDesigner/error.log 2>&1" >> $pkgdir/usr/local/bin/ProtocaseDesigner
chmod 755 $pkgdir/usr/local/bin/ProtocaseDesigner
install -d $pkgdir/usr/local/share/applications/
cp $srcdir/ProtocaseDesigner.desktop $pkgdir/usr/local/share/applications/ProtocaseDesigner.desktop
}
|