[arch-commits] Commit in gocr/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Tue Jan 23 02:26:19 UTC 2018
Date: Tuesday, January 23, 2018 @ 02:26:18
Author: bgyorgy
Revision: 285342
upgpkg: gocr 0.51-2
Adopt the package, drop unused library
Modified:
gocr/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-23 01:40:33 UTC (rev 285341)
+++ PKGBUILD 2018-01-23 02:26:18 UTC (rev 285342)
@@ -1,35 +1,30 @@
# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
# Contributor: damir <damir at archlinux.org>
pkgname=gocr
pkgver=0.51
-pkgrel=1
-pkgdesc="Open-source character recognition (OCR)"
+pkgrel=2
+pkgdesc="OCR (Optical Character Recognition) program, which converts scanned images of text back to text files"
arch=("x86_64")
-url="http://jocr.sourceforge.net/index.html"
+url="https://www-e.uni-magdeburg.de/jschulen/ocr/"
license=('GPL')
-depends=('glibc' 'netpbm')
-optdepends=('tk: to use the tk frontend')
+depends=('libjpeg-turbo' 'netpbm')
+optdepends=('fig2dev: read xfig images'
+ 'tk: to use the tk frontend')
+source=(https://www-e.uni-magdeburg.de/jschulen/ocr/$pkgname-$pkgver.tar.gz{,.asc})
validpgpkeys=('3816B803D578F5AD12FDFE065D330C4953BDFBE3')
-source=(https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-${pkgver}.tar.gz{,.asc})
sha256sums=('6eb2ae0fa4eb07cf4163081e0194ea65f605f7db9709dd30680686804dfc2692'
'SKIP')
build() {
- cd "$srcdir"/$pkgname-$pkgver
- [ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
- ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib
- make -j1 all libs
+ cd $pkgname-$pkgver
+ ./configure --bindir=/usr/bin --mandir=/usr/share/man
+ make
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- mkdir -p "$pkgdir"/usr/lib
- make DESTDIR="$pkgdir" libdir=/usr/lib/ bindir=/usr/bin install
- (cd "$pkgdir"/usr/lib/ && rm -f libPgm2asc.so && ln -s `echo libPgm2asc*.so` libPgm2asc.so)
- install -D -m644 doc/gocr.html "$pkgdir"/usr/share/doc/gocr/gocr.html
- for i in pgm2asc.h gocr.h; do
- install -D -m644 src/$i "$pkgdir"/usr/include/gocr/$i
- done
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list