blob: 37c9185f8175756d136cb345133009dfb72a6985 (
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
|
# Maintainer: Manoel Brunnen <manoel.brunnen@gmail.com>
pkgname=xctu
pkgver=6.3.5
pkgrel=0
pkgdesc="Next Generation Configuration Platform for XBee/RF Solutions."
arch=('i686' 'x86_64')
url="http://www.digi.com/products/xbee-rf-solutions/xctu-software/xctu"
license=('custom')
depends=('java-runtime-common')
options=('!strip')
# install=$pkgname.install
if [[ $CARCH == 'i686' ]]; then
_setup_file=40002880_G.run
md5sums=('906fe507935450b3e0f2ff28044c5650')
elif [[ $CARCH == 'x86_64' ]]; then
_setup_file=40002881_G.run
md5sums=('f378b0636d5f3b9327e43355c89151ef')
fi
source=("http://ftp1.digi.com/support/utilities/$_setup_file"
'launcher.sh'
'xctu.desktop'
'fix.patch')
md5sums+=('9ebb584444f6e9417bb74c1f4c5792cd'
'8268deecea042c3d4d557d6a47f1f004'
'1e0ebe726f6d5304091d6e10d01de7be')
noextract=()
prepare() {
chmod u+x $_setup_file
# ./$_setup_file --prefix $srcdir --mode unattended --unattendedmodeui none
# prefix option not working:
printf "\n\n\n\n\ny\n\n$srcdir\n\n\nn\nn\n" | ./$_setup_file --mode text || true
mv $srcdir/XCTU-NG $srcdir/$pkgname
echo $pkgver > $srcdir/$pkgname/version.txt
# change XCTU's config folder to ~/.config/xctu:
patch -p1 -N < $srcdir/fix.patch
}
package() {
install -d $pkgdir/opt
cp -a $srcdir/$pkgname $pkgdir/opt/$pkgname
install -Dm644 $srcdir/$pkgname/doc/License_Agreements.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
# Launcher
install -Dm755 $srcdir/launcher.sh $pkgdir/usr/bin/$pkgname
# Desktop file
install -Dm644 $srcdir/$pkgname/icon.xpm $pkgdir/usr/share/icons/hicolor/256x256/apps/xctu.xpm
install -Dm644 $srcdir/xctu.desktop $pkgdir/usr/share/applications/xctu.desktop
}
# vim:set ft=sh:
|