updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / tini / PKGBUILD
blob6588ab06ad5b7b808ef7ef4a2054ec65c079306b
2 # Contributor: Yannick Poirier <contact@yannickpoirier.fr>
3 pkgname=tini
4 pkgver=1.18
5 pkgrel=4
6 pkgdesc="TINI runtime environment for the DS80C400 Network Microcontroller"
7 arch=('i686')
8 url="http://www.maxim-ic.com/products/microcontrollers/tini/"
9 license=("Dallas Semiconductor")
10 groups=()
11 depends=("java-comm")
12 makedepends=()
13 provides=("tini_convertor" "tini_javaKit")
14 conflicts=()
15 replaces=()
16 backup=()
17 install=
18 source=("http://files.dalsemi.com/pub/tini/${pkgname}1_18.tgz")
19 noextract=()
20 md5sums=(4f117d2052790748fdfb575635a7c818) 
22 build() {
24     #create script to launch "tini_convertor"
25     echo "#!/bin/bash
27         FILE_NAME=\$1
28         PATH_TINI=/usr/share/java/$pkgname
30         export CLASSPATH=\$CLASSPATH:/lib/ext/comm.jar:/lib/javax.comm.properties
31         java -classpath \${PATH_TINI}/tini.jar:\$CLASSPATH  TINIConvertor \\
32                 -f \${FILE_NAME} \\
33                 -d \${PATH_TINI}/tini.db \\
34                 -o \${FILE_NAME%.*}.tini " > "$srcdir/${pkgname}_convertor"
36   #create script to launch "tini_javaKit"
37   echo "#!/bin/bash
39         PATH_TINI=/usr/share/java/$pkgname
41         export CLASSPATH=\$CLASSPATH:/lib/ext/comm.jar:/lib/javax.comm.properties
42         java -classpath \${PATH_TINI}/tini.jar:\$CLASSPATH JavaKit -400 -flash 40" > "$srcdir/${pkgname}_javaKit"
45   install -v -d "$pkgdir/usr/share/java/$pkgname" || return 1
46   install -v -d "$pkgdir/usr/share/licenses/$pkgname" || return 1
47   install -v -d "$pkgdir/usr/share/doc/$pkgname" || return 1
48   install -v -d "$pkgdir/usr/share/$pkgname" || return 1
49   install -v -d "$pkgdir/usr/share/$pkgname/bin" || return 1
50   install -v -d "$pkgdir/usr/bin" || return 1
52   install -D -m755 -v $srcdir/${pkgname}${pkgver}/bin/*.jar "$pkgdir/usr/share/java/$pkgname/"  
53   install -D -m755 -v $srcdir/${pkgname}${pkgver}/bin/tini.db "$pkgdir/usr/share/java/$pkgname/"  
54   install -D -m755 -v $srcdir/${pkgname}${pkgver}/License.txt "$pkgdir/usr/share/licenses/$pkgname/"  
55   install -D -m755 -v $srcdir/${pkgname}${pkgver}/README.txt "$pkgdir/usr/share/$pkgname/"  
56   install -D -m755 -v $srcdir/${pkgname}${pkgver}/bin/*.{tbin,txt} "$pkgdir/usr/share/$pkgname/bin"  
58   install -D -m755 -v $srcdir/${pkgname}_javaKit "$pkgdir/usr/bin"  
59   install -D -m755 -v $srcdir/${pkgname}_convertor "$pkgdir/usr/bin"  
61   cp -r  $srcdir/${pkgname}${pkgver}/docs/* "$pkgdir/usr/share/doc/$pkgname"  
62   cp -r  $srcdir/${pkgname}${pkgver}/examples "$pkgdir/usr/share/$pkgname"    
63   cp -r  $srcdir/${pkgname}${pkgver}/native "$pkgdir/usr/share/$pkgname"