[arch-commits] Commit in git/trunk (PKGBUILD)

Dan McGee dan at archlinux.org
Tue Aug 19 12:07:34 EDT 2008


    Date: Tuesday, August 19, 2008 @ 12:07:34
  Author: dan
Revision: 9851

upgpkg: git 1.6.0-1

Modified:
  git/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-19 13:53:30 UTC (rev 9850)
+++ PKGBUILD	2008-08-19 16:07:34 UTC (rev 9851)
@@ -2,7 +2,7 @@
 # Maintainer: Dan McGee <dan at archlinux.org>
 
 pkgname=git
-pkgver=1.5.6.5
+pkgver=1.6.0
 pkgrel=1
 pkgdesc="GIT - the stupid content tracker"
 arch=(i686 x86_64)
@@ -16,28 +16,31 @@
         "http://kernel.org/pub/software/scm/git/git-manpages-${pkgver}.tar.bz2")
 
 build() {
-  cd ${startdir}/src/${pkgname}-${pkgver}
-  make THREADED_DELTA_SEARCH=1 prefix=/usr || return 1
-  make THREADED_DELTA_SEARCH=1 prefix=/usr \
-    INSTALLDIRS=vendor DESTDIR=${startdir}/pkg install
+  cd $srcdir/$pkgname-$pkgver
+  make THREADED_DELTA_SEARCH=1 \
+    prefix=/usr gitexecdir=/usr/lib/git-core || return 1
+  make THREADED_DELTA_SEARCH=1 \
+    prefix=/usr gitexecdir=/usr/lib/git-core \
+	INSTALLDIRS=vendor DESTDIR=${pkgdir} install
   
   # let's plop gitweb in /usr/share
-  cp -dR ./gitweb ${startdir}/pkg/usr/share/gitweb
+  mkdir -p $pkgdir/usr/share/ || return 1
+  cp -dR ./gitweb $pkgdir/usr/share/gitweb || return 1
 
   #bash completion
-  mkdir -p ${startdir}/pkg/etc/bash_completion.d/
-  install -m644 ./contrib/completion/git-completion.bash ${startdir}/pkg/etc/bash_completion.d/git
+  mkdir -p $pkgdir/etc/bash_completion.d/ || return 1
+  install -m644 ./contrib/completion/git-completion.bash $pkgdir/etc/bash_completion.d/git || return 1
 
   # how 'bout some manpages?
   for mansect in man1 man5 man7; do
-    for manpage in ${startdir}/src/${mansect}/*; do
-      install -D -m644 $manpage ${startdir}/pkg/usr/share/man/${mansect}/$(basename $manpage)
+    for manpage in $srcdir/$mansect/*; do
+      install -D -m644 $manpage $pkgdir/usr/share/man/$mansect/$(basename $manpage)
     done
   done
 
   # remove perllocal.pod, .packlist, and empty directories.
-  rm -rf ${startdir}/pkg/usr/lib
+  rm -rf $pkgdir/usr/lib/perl5
 }
 
-md5sums=('5175d142ad0745b9e22a64904aa86c45'
-         'fd0632919f14b28a7af6abccf8c2d796')
+md5sums=('3d37e1f1e93c7828236e2af04ea0d071'
+         '0154019dc417fb72e682a98afeac9cbc')




More information about the arch-commits mailing list