updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / curie-git / PKGBUILD
blob44c689be5bb4c60ff51315dca1d48df681d2c636
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=curie-git
4 pkgver=20110628
5 pkgrel=1
6 pkgdesc="minimalistic C library, non-posix, not standard-conformant"
7 arch=('i686' 'x86_64')
8 url="http://becquerel.org/curie"
9 license=('MIT')
10 #depends=('')
11 provides=('curie')
12 makedepends=('git')
14 _gitroot=('git://git.becquerel.org/kyuba/curie.git')
15 _gitname=('curie')
17 build() {
18  cd $srcdir
20    if [ -d $_gitname ] ; then
21     cd $_gitname && git pull $_gitroot
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
26   rm -rf $srcdir/build
27   cp -ar $srcdir/$_gitname $srcdir/build
30 package() {
31  cd $srcdir/build
32  ./build.sh -dif $pkgdir/usr
33  mkdir -p  $pkgdir/usr/share/licenses/$_gitname
34  install -m644 $srcdir/$_gitname/COPYING $pkgdir/usr/share/licenses/$_gitname/COPYING
35  install -m644 $srcdir/$_gitname/CREDITS $pkgdir/usr/share/licenses/$_gitname/CREDITS