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

Giovanni Scafora giovanni at archlinux.org
Wed Nov 30 15:57:14 EST 2011


    Date: Wednesday, November 30, 2011 @ 15:57:14
  Author: giovanni
Revision: 143922

upgpkg: ocrad 0.21-2

rebuild

Modified:
  ocrad/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-30 20:53:59 UTC (rev 143921)
+++ PKGBUILD	2011-11-30 20:57:14 UTC (rev 143922)
@@ -3,14 +3,14 @@
 
 pkgname=ocrad
 pkgver=0.21
-pkgrel=1
+pkgrel=2
 pkgdesc="An Optical Character Recognition program"
 arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/ocrad/ocrad.html"
 license=('GPL3')
 depends=('gcc-libs' 'texinfo')
 install=ocrad.install
-source=(http://ftp.gnu.org/gnu/ocrad/ocrad-$pkgver.tar.gz)
+source=("http://ftp.gnu.org/gnu/ocrad/ocrad-$pkgver.tar.gz")
 md5sums=('83f9eae9d808f9d86c181538d3f64aed')
 
 build() {
@@ -18,10 +18,14 @@
 
   ./configure --prefix=/usr \
               CXXFLAGS="${CXXFLAGS}" \
-              LDFLAGS="${LDFLAGS}" || return 1
-  make || return 1
+              LDFLAGS="${LDFLAGS}"
+  make
+}
 
-  make DESTDIR="${pkgdir}" install install-man || return 1
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install install-man
   rm $pkgdir/usr/share/info/dir
   gzip $pkgdir/usr/share/info/*
 }



More information about the arch-commits mailing list