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

Dan McGee dan at archlinux.org
Wed Nov 9 00:49:22 EST 2011


    Date: Wednesday, November 9, 2011 @ 00:49:22
  Author: dan
Revision: 142409

upgpkg: cscope 15.7a-3

rebuild for signing and PKGBUILD cleanup

Modified:
  cscope/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-09 04:55:56 UTC (rev 142408)
+++ PKGBUILD	2011-11-09 05:49:22 UTC (rev 142409)
@@ -4,34 +4,31 @@
 
 pkgname=cscope
 pkgver=15.7a
-pkgrel=2
+pkgrel=3
 pkgdesc="A developers tool for browsing program code"
 arch=('i686' 'x86_64')
-url="http://cscope.sourceforge.net/index.html"
+url="http://cscope.sourceforge.net/"
 license=('BSD')
 depends=('ncurses' 'sh')
 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
 md5sums=('da43987622ace8c36bbf14c15a350ec1')
 
 build() {
-	cd ${srcdir}/${pkgname}-${pkgver}
-	sed -i 's|/usr/local/lib/cs|/usr/lib/cs|' contrib/ocs || return 1
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed -i 's|/usr/local/lib/cs|/usr/lib/cs|' contrib/ocs
 
-	./configure --prefix=/usr || return 1
-	make || return 1
+	./configure --prefix=/usr
+	make
 }
 
 package() {
-	cd ${srcdir}/${pkgname}-${pkgver}
-	make DESTDIR=${pkgdir} install || return 1
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
   
 	install -d ${pkgdir}/usr/lib/cs
+	install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 
 	cd contrib/xcscope
-	install -Dm644 xcscope.el \
-		${pkgdir}/usr/share/emacs/site-lisp/xcscope.el || return 1
-	install -m755 cscope-indexer ${pkgdir}/usr/bin || return 1
-
-	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/COPYING \
-		${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+	install -Dm644 xcscope.el "${pkgdir}"/usr/share/emacs/site-lisp/xcscope.el
+	install -m755 cscope-indexer "${pkgdir}"/usr/bin
 }



More information about the arch-commits mailing list