updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / janet / PKGBUILD
blob67ee5747d8d5215eff14564e50fceb59a59554d5
1 # Maintainer: Cody Lee <platinummonkey at archlinux dot us>
3 pkgname=janet
4 pkgver=0.1.4
5 pkgrel=1
6 pkgdesc="A Digital life assistant (DLA) that provides a framework allowing various components to communicate, controlled interactively by the user and inspired by Iron Man's JARVIS."
7 arch=('i686' 'x86_64')
8 url="http://sites.google.com/site/projectjanet"
9 license=('CCPL:by-nc' 'GPL')
10 depends=('monodevelop' 'festival' 'simon')
11 makedepends=()
12 optdepends=('janet-addons: Additional plugins for jaNET'
13             'htk: For customizing simon')
14 install=
15 source=("http://sourceforge.net/projects/project-janet/files/Binaries/Bin.tar.gz")
16 md5sums=('4221150b5a141b8f304665c429cb6254') #generate with 'makepkg -g'
18 build() {
19   cd $srcdir
22 package() {
23   cd $srcdir
24   mkdir -p /usr/share/$pkgname/scripts
25   cp -R ./* /usr/share/$pkgname/.
26   
27   # create janet launcher script
28   cat <<EOF >>/usr/bin/$pkgname
29 #!/bin/sh
30 /usr/bin/mono /usr/share/$pkgname/jaNET.exe "\$\@"
31 EOF
32   chmod a+x /usr/bin/$pkgname
33   # create the push2server script
34   cat <<EOF >>/usr/bin/push2server
35 #!/bin/bash
37 # configuration
38 HOST="localhost"
39 PORT="5744"
41 # try to connect
42 if ! exec 5<> /dev/tcp/$HOST/$PORT; then
43   echo "`basename $0`: unable to connect to $HOST:$PORT"
44   exit 1
45 else
46   echo $1 > /dev/tcp/$HOST/$PORT;
48 EOF
49   echo -e 'To set up the festival voice and simon configuration see: \n
50            https://wiki.archlinux.org/index.php/JaNET\n
51            \n
52            jaNET 0.1.4 now comes with server mode! to enable it:\n
53               janet "judo server start"\n
54               Example: push2server "weathertoday"\n
55               or you can simply: echo "weathertoday" > /dev/tcp/<ip address>/5744'