updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libduat-git / PKGBUILD
blob36ae88cccf1744b289b41620706e7873efcb3b75
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=libduat-git
4 pkgver=20110629
5 pkgrel=1
6 pkgdesc="An I/O library for C applications to implement FS servers"
7 arch=('i686' 'x86_64')
8 url="http://becquerel.org/libduat"
9 license=('MIT')
10 provides=('libduat')
11 depends=('curie-git')
12 makedepends=('git')
14 _gitroot=('git://git.becquerel.org/kyuba/duat.git')
15 _gitname=('libduat')
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  ice -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