summaryrefslogtreecommitdiff
path: root/community/unpaper/PKGBUILD
blob: e9463d7e9b012ccb65433f057fb8c1597126b863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $Id: PKGBUILD 65349 2012-02-21 02:16:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>

pkgname=unpaper
pkgver=0.3
pkgrel=3
pkgdesc="post-processing tool for scanned sheets of paper"
arch=('i686' 'x86_64')
url="http://$pkgname.berlios.de/"
license="GPL"
depends=()
makedepends=('gcc')
source=("http://download.berlios.de/unpaper/$pkgname-${pkgver}.tar.gz")
md5sums=('be41eaf8556e7df39ab53939c99c4f7b')

build() {
  cd $srcdir/$pkgname-$pkgver/src
  gcc $CFLAGS -lm -funroll-all-loops -fomit-frame-pointer -ftree-vectorize -o unpaper unpaper.c
  install -D -m0755 unpaper $pkgdir/usr/bin/unpaper
  install -d -m0755 $pkgdir/usr/share/doc/unpaper
  cp -a ../doc/* $pkgdir/usr/share/doc/unpaper
}