# Contributor: Carlo Landmeter # Maintainer: setvar pkgname = 'scantailor' setvar pkgver = '0.9.11.1' setvar pkgrel = '0' setvar pkgdesc = ""Interactive post-processing tool for scanned pages"" setvar url = ""http://scantailor.sourceforge.net"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = """" setvar depends_dev = ""qt-dev boost-dev libjpeg-turbo-dev tiff-dev"" setvar makedepends = ""$depends_dev cmake"" setvar install = """" setvar subpackages = ""$pkgname-cli"" setvar source = ""http://downloads.sourceforge.net/scantailor/scantailor-$pkgver.tar.gz"" setvar _builddir = ""$srcdir"/scantailor-$pkgver" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc 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 } proc package { cd $_builddir make DESTDIR="$pkgdir" install } proc cli { setvar pkgdesc = ""scantailer cli"" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir/"usr/bin/scantailor-cli \ "$subpkgdir"/usr/bin/ } setvar md5sums = ""6cdca1b6d1dafd022ea94b4800dad340 scantailor-0.9.11.1.tar.gz"" setvar sha256sums = ""881647a4172c55a067a7b6687965441cf21176d79d93075b22a373ea9accd8d3 scantailor-0.9.11.1.tar.gz"" setvar sha512sums = ""cec327fd12144f7cee5043adfee3880c75fb147474e4c3b5166385f7a8f47cb5650ed2df930bbe1f4b8ac2c7229a887ecba1ca105b47b1023f5d3d7d7b54bdb4 scantailor-0.9.11.1.tar.gz""