summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91cab3cc23c1cc3f243477d275e605db17bb9731 (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
# Maintainer: Allen Choong Chieng Hoon <allen dot choong at gmail dot com>
pkgname=ironahk-git
pkgver=20120716
pkgrel=1
pkgdesc="Cross platform .NET rewrite of the popular AutoHotkey scripting language for desktop automation"
arch=('i686' 'x86_64')
url="http://www.ironahk.net/"
license=('custom')
depends=('mono')
makedepends=('git')

_gitroot="git://github.com/polyethene/IronAHK.git"
_gitname="IronAHK"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  #cd "$srcdir/$_gitname-build"

  #make
}

package() {
  cd "$srcdir/$_gitname-build"
  mkdir -p $pkgdir/usr/bin
  chmod u+x Deploy/setup.sh
  make DESTDIR="$pkgdir/usr/" prefix="$pkgdir/usr/" install
  echo "#!/bin/sh" > "$pkgdir/usr/bin/ironahk"
  echo "exec mono \"/usr/lib/IronAHK/IronAHK.exe\" \"\$@\"" >> "$pkgdir/usr/bin/ironahk"
}