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

Daniel Griffiths dgriffiths at archlinux.org
Tue Feb 9 20:57:12 UTC 2010


    Date: Tuesday, February 9, 2010 @ 15:57:12
  Author: dgriffiths
Revision: 67937

Move to splitpkg format

Modified:
  cscope/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-02-09 20:56:21 UTC (rev 67936)
+++ PKGBUILD	2010-02-09 20:57:12 UTC (rev 67937)
@@ -1,6 +1,6 @@
-# $Id$
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 # Contributor: Jason Chu <jason at archlinux.org>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=cscope
 pkgver=15.7a
@@ -14,19 +14,24 @@
 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 || return 1
 
-  ./configure --prefix=/usr || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+	./configure --prefix=/usr || return 1
+	make || return 1
+}
+
+package() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	make DESTDIR=${pkgdir} install || return 1
   
-  install -d "${pkgdir}/usr/lib/cs"
+	install -d ${pkgdir}/usr/lib/cs
 
-  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
+	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 ${srcdir}/${pkgname}-${pkgver}/COPYING \
+		${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }




More information about the arch-commits mailing list