updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / intel-gen4asm-git / PKGBUILD
blob31e5281dba27a8f6009485335d3e684991d3dbe5
1 # Maintainer: trya <tryagainprod@gmail.com>
3 pkgname=intel-gen4asm-git
4 pkgver=20111002
5 pkgrel=1
6 pkgdesc="A program to compile an assembly language for the Intel 965 Express Chipset"
7 arch=('i686' 'x86_64')
8 url="http://cgit.freedesktop.org/xorg/app/intel-gen4asm"
9 license=('MIT')
10 makedepends=('git')
11 provides=('intel-gen4asm=1.2')
12 source=()
13 md5sums=()
15 _gitroot="git://anongit.freedesktop.org/xorg/app/intel-gen4asm"
16 _gitname="intel-gen4asm"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   cd "$srcdir"
33   rm -rf $_gitname-build
34   cp -r $_gitname $_gitname-build
35   cd $_gitname-build
37   ./autogen.sh
38   ./configure --prefix=/usr
39   make
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir" install
45   install -m644 -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"