updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / libatomic / PKGBUILD
blobd23b04686804ab0e737f3495c2680cba0c2a40ac
1 # Contributor: Andrej Nandaromovszij <sorosj@gmail.com>
3 pkgname=libatomic
4 pkgrel=1
5 pkgver=99
6 pkgdesc="Libatomic provides arch-independant API for the low-level atomic implementation."
7 arch=('i686')
8 url="http://ioremap.net"
9 license=('GPL')
10 makedepends=('make' 'gcc' 'git' 'autoconf' 'automake')
13 _gitroot=http://www.ioremap.net/git/libatomic.git
14 _gitrepo=libatomic.ġit
16 build() {
17   msg "Cloning the repo..."
18   cd $startdir/src
19   if [ ! -d $_gitrepo ]; then
20     git clone $_gitroot $_gitrepo
21   else
22     cd $_gitrepo
23     git pull
24     cd ..
25   fi
27   msg "Done, now exporting a pristine version of the repo to work in..."
28   cd $_gitrepo
29   git archive --format=tar --prefix=$pkgname/ HEAD | (cd $startdir/src/ && tar xf -)
30   cd ../$pkgname
32   msg "Done, building libatomic..."
33   ./autogen.sh
34   ./configure --prefix=/usr
35   make DESTDIR="$startdir/pkg/"
36   make DESTDIR="$startdir/pkg/" install
37   
38   msg "Done, thanks!"