updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libbsd-git / PKGBUILD
blob08375332f6e73d378eee034fe6c93f6d6642cd90
1  
2 # Maintainer: Jens Staal <staal1978@gmail.com>
4 pkgname=libbsd-git
5 pkgver=20110613
6 pkgrel=3
7 pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
8 arch=('i686' 'x86_64')
9 url="http://libbsd.freedesktop.org"
10 license=('custom')
11 depends=('glibc')
12 makedepends=('git')
13 provides=('libbsd')
14 conflicts=('libbsd')
15 source=(LICENSE)
16 md5sums=('5bd59ff83a7df4873b034478ffae62a6')
17 _gitroot=('git://anongit.freedesktop.org/git/libbsd')
18 _gitname=('libbsd')
20 build() {
21  cd $srcdir
23  cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull $_gitroot
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..." 
36  rm -rf $srcdir/build
38  cp -ar "$srcdir/$_gitname" $srcdir/build
40  cd $srcdir/build
41  make exec_prefix=/usr includedir=/usr/include/libbsd || return 1
44 package() {
45   cd $srcdir/build
47   make exec_prefix=/usr includedir=/usr/include/libbsd DESTDIR=$pkgdir install
48   install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE