2 # Contributor: Yannick Poirier <contact@yannickpoirier.fr>
6 pkgdesc="TINI runtime environment for the DS80C400 Network Microcontroller"
8 url="http://www.maxim-ic.com/products/microcontrollers/tini/"
9 license=("Dallas Semiconductor")
13 provides=("tini_convertor" "tini_javaKit")
18 source=("http://files.dalsemi.com/pub/tini/${pkgname}1_18.tgz")
20 md5sums=(4f117d2052790748fdfb575635a7c818)
24 #create script to launch "tini_convertor"
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 \\
33 -d \${PATH_TINI}/tini.db \\
34 -o \${FILE_NAME%.*}.tini " > "$srcdir/${pkgname}_convertor"
36 #create script to launch "tini_javaKit"
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"