updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / libemu / PKGBUILD
blob6535a9c3503241cd41c51e46588e4b2bd9542999
1 # Maintainer: Gagou <gagou@rez-gif.supelec.fr>
2 pkgname=libemu
3 pkgver=20111128
4 pkgrel=1
5 pkgdesc="A small library written in c offering basic x86 emulation and shellcode detection"
6 url="http://libemu.carnivore.it/"
7 license=(GPL)
8 arch=('i686' 'x86_64')
9 depends=('glibc')
10 makedepends=('git')
12 _gitroot="git://git.carnivore.it/libemu.git"
13 _gitname="libemu"
15 build() {
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   autoreconf -i
33   ./configure --prefix=/usr || return 1
34   make || return 1
36 package() {
37   cd "$srcdir/$_gitname-build"
38   make DESTDIR=$pkgdir install