summaryrefslogtreecommitdiffstats
path: root/testing/unpaper/APKBUILD
blob: 860bb34256057af7e7c081cd77cc1ad9358bf3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=unpaper
pkgver=0.3
pkgrel=0
pkgdesc="Post-processing scanned and photocopied book pages"
url="http://unpaper.berlios.de/"
arch="all"
license="GPL+"
depends=""
depends_dev=""
makedepends=""
install=""
subpackages=""
source="http://download.berlios.de/$pkgname/$pkgname-bin-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	gcc $RPM_OPT_FLAGS -o src/unpaper src/unpaper.c -lm || return 1
}

package() {
	cd "$_builddir"
	install -m755 -D "$_builddir"/src/$pkgname \
		"$pkgdir"/usr/bin/$pkgname || return 1
}

md5sums="0748137e67fa5796474716a096a82723  unpaper-bin-0.3.tar.gz"