diff options
Diffstat (limited to 'extra/indent')
-rw-r--r-- | extra/indent/PKGBUILD | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/extra/indent/PKGBUILD b/extra/indent/PKGBUILD index 6afb2705c..637dd82ba 100644 --- a/extra/indent/PKGBUILD +++ b/extra/indent/PKGBUILD @@ -1,19 +1,17 @@ -# $Id: PKGBUILD 152433 2012-03-06 21:03:48Z stephane $ -# Maintainer: Aaron Griffin <aaron@archlinux.org> -# Contributor: aurelien <aurelien@archlinux.org> -# Contributor: Herb Rose (hrose56@yahoo.com) +# $Id: PKGBUILD 195284 2013-09-29 20:55:02Z eric $ +# Maintainer: pkgname=indent pkgver=2.2.11 -pkgrel=2.1 +pkgrel=3 pkgdesc="C language source code formatting program" arch=('i686' 'x86_64' 'mips64el') -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 @@ sha1sums=('9b242528bbc4914464117c69ffae9df24d3fa4a7' '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 } |