Balló György pushed to branch main at Arch Linux / Packaging / Packages / gocr


Commits:
c8dae331 by Balló György at 2024-08-23T04:21:11+02:00
upgpkg: 0.52-3: Add .SRCINFO, specify SPDX license, add config to nvchecker

- - - - -


3 changed files:

- + .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,19 @@
+pkgbase = gocr
+       pkgdesc = OCR (Optical Character Recognition) program, which converts 
scanned images of text back to text files
+       pkgver = 0.52
+       pkgrel = 3
+       url = https://www-e.uni-magdeburg.de/jschulen/ocr/
+       arch = x86_64
+       license = GPL-2.0-or-later
+       depends = glibc
+       depends = libjpeg-turbo
+       depends = netpbm
+       optdepends = fig2dev: Read xfig images
+       optdepends = tk: Tk frontend
+       source = https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz
+       source = 
https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz.asc
+       validpgpkeys = 3816B803D578F5AD12FDFE065D330C4953BDFBE3
+       b2sums = 
1f22f5377bb95053e3ab4ede074b3fceca4065f9ca0ede05a8023ebe807f41074f5ead84e133281e98be7f68f13b036dc759cccaf4a5688bf776f62f2de1970a
+       b2sums = SKIP
+
+pkgname = gocr


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,4 @@
+[gocr]
+source = "regex"
+url = "https://www-e.uni-magdeburg.de/jschulen/ocr/download.html";
+regex = "gocr-(.*).tar"


=====================================
PKGBUILD
=====================================
@@ -4,22 +4,37 @@
 
 pkgname=gocr
 pkgver=0.52
-pkgrel=2
+pkgrel=3
 pkgdesc='OCR (Optical Character Recognition) program, which converts scanned 
images of text back to text files'
-arch=('x86_64')
+arch=(x86_64)
 url='https://www-e.uni-magdeburg.de/jschulen/ocr/'
-license=('GPL')
-depends=('libjpeg-turbo' 'netpbm')
-optdepends=('fig2dev: read xfig images'
-            'tk: to use the tk frontend')
+license=(GPL-2.0-or-later)
+depends=(
+  glibc
+  libjpeg-turbo
+  netpbm
+)
+optdepends=(
+  'fig2dev: Read xfig images'
+  'tk: Tk frontend'
+)
 
source=("https://www-e.uni-magdeburg.de/jschulen/ocr/$pkgname-$pkgver.tar.gz"{,.asc})
-sha256sums=('df906463105f5f4273becc2404570f187d4ea52bd5769d33a7a8661a747b8686'
-            'SKIP')
-validpgpkeys=('3816B803D578F5AD12FDFE065D330C4953BDFBE3')
+b2sums=(
+  
1f22f5377bb95053e3ab4ede074b3fceca4065f9ca0ede05a8023ebe807f41074f5ead84e133281e98be7f68f13b036dc759cccaf4a5688bf776f62f2de1970a
+  SKIP
+)
+validpgpkeys=(3816B803D578F5AD12FDFE065D330C4953BDFBE3)
+
+prepare() {
+  cd $pkgname-$pkgver
+  autoreconf -fi
+}
 
 build() {
   cd $pkgname-$pkgver
-  ./configure --bindir=/usr/bin --mandir=/usr/share/man
+  ./configure \
+    --bindir=/usr/bin \
+    --mandir=/usr/share/man
   make
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gocr/-/commit/c8dae3315f12543af344ac93e66bcfc86ae3225a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gocr/-/commit/c8dae3315f12543af344ac93e66bcfc86ae3225a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to