updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / or1ksim-git / PKGBUILD
blob4eab882c3586dc8aa5114b14ca9779f7afdf68b3
1 pkgname=or1ksim-git
2 pkgver=20110825
3 pkgrel=1
4 pkgdesc="OpenRISC simulator"
5 arch=(i686 x86_64)
6 url="http://opencores.org/openrisc,or1ksim"
7 license=('GPL')
8 depends=()
9 makedepends=('git')
10 source=()
12 _gitroot=git://openrisc.net/jonas/or1ksim-svn
13 _gitname=or1ksim-svn
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   #
34   # BUILD HERE
35   #
36   ./configure --prefix=/usr
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   make DESTDIR="$pkgdir/" install