1 # Maintainer: Allan McRae <allan@archlinux.org>
6 pkgdesc="GNU Portability Library"
8 url="http://www.gnu.org/software/gnulib"
13 _gitroot="git://git.savannah.gnu.org/gnulib.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
34 sed -i "/^[ ]*gnulib_dir=/s#\`[^\`]*\`#/usr/share/$pkgname#" gnulib-tool
39 cd "$srcdir/$_gitname-build"
40 install -dm755 $pkgdir/usr/bin
41 install -m755 -t $pkgdir/usr/bin check-module gnulib-tool
43 dir=$(find build-aux lib m4 modules top -type d)
46 install -dm755 $pkgdir/usr/share/$pkgname/$i
47 install -m644 -t $pkgdir/usr/share/$pkgname/$i $(find $i -maxdepth 1 -type f)
50 install -Dm644 doc/gnulib.info $pkgdir/usr/share/info/gnulib.info
51 install -Dm644 COPYING $pkgdir/usr/share/licenses/${pkgname}/COPYING