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

Eric Bélanger eric at nymeria.archlinux.org
Sun Sep 29 20:53:35 UTC 2013


    Date: Sunday, September 29, 2013 @ 22:53:34
  Author: eric
Revision: 195283

upgpkg: indent 2.2.11-3

Fix url, Add prepare function

Modified:
  indent/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-09-29 20:22:47 UTC (rev 195282)
+++ PKGBUILD	2013-09-29 20:53:34 UTC (rev 195283)
@@ -1,19 +1,17 @@
 # $Id$
-# Maintainer: Aaron Griffin <aaron at archlinux.org>
-# Contributor: aurelien <aurelien at archlinux.org>
-# Contributor: Herb Rose (hrose56 at yahoo.com)
+# Maintainer: 
 
 pkgname=indent
 pkgver=2.2.11
-pkgrel=2
+pkgrel=3
 pkgdesc="C language source code formatting program"
 arch=('i686' 'x86_64')
-url="http://indent.isidore-it.eu/beautify.html"
+url="https://www.gnu.org/software/indent/"
+license=('GPL3')
 depends=('glibc')
 makedepends=('texi2html')
-license=('GPL3')
 install=indent.install
-source=(http://indent.isidore-it.eu/${pkgname}-${pkgver}.tar.gz
+source=(http://ftp.de.debian.org/debian/pool/main/i/indent/${pkgname}_${pkgver}.orig.tar.gz
         indent-2.2.11-segfault.patch
         indent-2.2.11-LC_ALL.patch
         indent-2.2.11-decimal_format.patch)
@@ -22,23 +20,26 @@
           '91b210b666de59ca44524288a4c1ebd213570daa'
           '2b7d5a725fe307ce81565f920a0a66b319b50c91')
 
-build() {
-   cd "${srcdir}/${pkgname}-${pkgver}"
-   
-   patch -Np1 -i ../indent-2.2.11-segfault.patch
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ../indent-2.2.11-segfault.patch
 
-   # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=205692
-   patch -Np1 -i ../indent-2.2.11-LC_ALL.patch
+  # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=205692
+  patch -Np1 -i ../indent-2.2.11-LC_ALL.patch
 
-   # https://lists.gnu.org/archive/html/bug-indent/2011-08/msg00000.html
-   patch -Np1 -i ../indent-2.2.11-decimal_format.patch
+  # https://lists.gnu.org/archive/html/bug-indent/2011-08/msg00000.html
+  patch -Np1 -i ../indent-2.2.11-decimal_format.patch
    
-   sed -i 's/-number/-number-sections/' doc/Makefile.in
-   ./configure --prefix=/usr
-   make
+  sed -i 's/-number/-number-sections/' doc/Makefile.in
 }
 
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  ./configure --prefix=/usr
+  make
+}
+
 package() {
-   cd "${srcdir}/${pkgname}-${pkgver}"
-   make DESTDIR="${pkgdir}" docdir=/usr/share/doc/indent install
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" docdir=/usr/share/doc/indent install
 }




More information about the arch-commits mailing list