summaryrefslogtreecommitdiff
path: root/extra/ocrad
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/ocrad
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/ocrad')
-rw-r--r--extra/ocrad/PKGBUILD27
-rw-r--r--extra/ocrad/ocrad.install20
2 files changed, 47 insertions, 0 deletions
diff --git a/extra/ocrad/PKGBUILD b/extra/ocrad/PKGBUILD
new file mode 100644
index 000000000..52fb00e05
--- /dev/null
+++ b/extra/ocrad/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 106659 2011-01-17 20:26:09Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=ocrad
+pkgver=0.21
+pkgrel=1
+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)
+md5sums=('83f9eae9d808f9d86c181538d3f64aed')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr \
+ CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}" || return 1
+ make || return 1
+
+ make DESTDIR="${pkgdir}" install install-man || return 1
+ rm $pkgdir/usr/share/info/dir
+ gzip $pkgdir/usr/share/info/*
+}
diff --git a/extra/ocrad/ocrad.install b/extra/ocrad/ocrad.install
new file mode 100644
index 000000000..eb599d04e
--- /dev/null
+++ b/extra/ocrad/ocrad.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(ocrad.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}