2 # Maintainer: Jens Staal <staal1978@gmail.com>
7 pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
9 url="http://libbsd.freedesktop.org"
16 md5sums=('5bd59ff83a7df4873b034478ffae62a6')
17 _gitroot=('git://anongit.freedesktop.org/git/libbsd')
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull $_gitroot
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
38 cp -ar "$srcdir/$_gitname" $srcdir/build
41 make exec_prefix=/usr includedir=/usr/include/libbsd || return 1
47 make exec_prefix=/usr includedir=/usr/include/libbsd DESTDIR=$pkgdir install
48 install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE