updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / dev9-git / PKGBUILD
blob3f7ba8f95678aca2a077734bd2008fee48a01c14
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=dev9-git
4 pkgver=20110629
5 pkgrel=1
6 pkgdesc="A 9P replacement of udev"
7 arch=('i686' 'x86_64')
8 url="http://becquerel.org/dev9"
9 license=('MIT')
10 provides=('udev')
11 depends=('libduat-git' 'curie-git' 'libnl')
12 makedepends=('git' 'scons' 'pkg-config')
13 source=('rulesc.patch' 'dev9c.patch')
14 md5sums=('5a815402a6fb3271c65373bd1a3a0a47' 'a305b4d50d62b6c30768fbb9cd3f355a')
16 _gitroot=('git://git.becquerel.org/kyuba/dev9.git')
17 _gitname=('dev9')
19 build() {
20  cd $srcdir
22    if [ -d $_gitname ] ; then
23     cd $_gitname && git pull $_gitroot
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
28   rm -rf $srcdir/build
29   cp -ar $srcdir/$_gitname $srcdir/build
30   cd $srcdir/build
31   patch src/rules.c -i $srcdir/rulesc.patch
32   patch src/dev9.c -i $srcdir/dev9c.patch
35 package() {
36  cd $srcdir/build
37  ice -dif $pkgdir
38  mkdir -p  $pkgdir/usr/share/licenses/$_gitname
39  install -m644 $srcdir/$_gitname/COPYING $pkgdir/usr/share/licenses/$_gitname/COPYING
40  install -m644 $srcdir/$_gitname/CREDITS $pkgdir/usr/share/licenses/$_gitname/CREDITS