aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/scantailor/APKBUILD
blob: c6e8689dd4000d489d27566d480143b77aef0ef4 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=scantailor
pkgver=0.9.11.1
pkgrel=0
pkgdesc="Interactive post-processing tool for scanned pages"
url="http://scantailor.sourceforge.net"
arch="all"
license="GPL"
depends=""
depends_dev="qt-dev boost-dev libjpeg-turbo-dev tiff-dev"
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-cli"
source="http://downloads.sourceforge.net/scantailor/scantailor-$pkgver.tar.gz"

_builddir="$srcdir"/scantailor-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	cmake \
		-DCMAKE_CXX_FLAGS="-DBOOST_NO_MEMBER_TEMPLATE_FRIENDS" \
		-DCMAKE_CXX_FLAGS_DEBUG="-DBOOST_NO_MEMBER_TEMPLATE_FRIENDS" \
		-DCMAKE_CXX_FLAGS_RELEASE="-DBOOST_NO_MEMBER_TEMPLATE_FRIENDS" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release .
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

cli() {
	pkgdesc="scantailer cli"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir/"usr/bin/scantailor-cli \
		"$subpkgdir"/usr/bin/
}

md5sums="6cdca1b6d1dafd022ea94b4800dad340  scantailor-0.9.11.1.tar.gz"
sha256sums="881647a4172c55a067a7b6687965441cf21176d79d93075b22a373ea9accd8d3  scantailor-0.9.11.1.tar.gz"
sha512sums="cec327fd12144f7cee5043adfee3880c75fb147474e4c3b5166385f7a8f47cb5650ed2df930bbe1f4b8ac2c7229a887ecba1ca105b47b1023f5d3d7d7b54bdb4  scantailor-0.9.11.1.tar.gz"