diff options
Diffstat (limited to 'community-staging/scantailor')
-rw-r--r-- | community-staging/scantailor/PKGBUILD | 35 | ||||
-rw-r--r-- | community-staging/scantailor/build-fix.patch | 16 |
2 files changed, 51 insertions, 0 deletions
diff --git a/community-staging/scantailor/PKGBUILD b/community-staging/scantailor/PKGBUILD new file mode 100644 index 000000000..32059f4c2 --- /dev/null +++ b/community-staging/scantailor/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 62307 2012-01-19 07:47:58Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Denis Terskov aka neurosurgeon <terskov.den@gmail.com> + +pkgname=scantailor +pkgver=0.9.10 +pkgrel=2 +pkgdesc="Interactive post-processing tool for scanned pages" +arch=(i686 x86_64) +url="http://scantailor.sourceforge.net" +license="GPL" +depends=('qt') +makedepends=('cmake' 'boost') +options=('!makeflags') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + build-fix.patch) +md5sums=('f962c93a2d63b449fa3f6612ade3b028' + '0aeb1bae724b5cae208ae8af95e8ed9b') + +build() { + cd $srcdir/$pkgname-$pkgver + unset CFLAGS + unset CPPFLAGS + unset CXXFLAGS + patch -p1 <$srcdir/build-fix.patch + cmake . + 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 + make DESTDIR="$pkgdir" install +} diff --git a/community-staging/scantailor/build-fix.patch b/community-staging/scantailor/build-fix.patch new file mode 100644 index 000000000..85b620020 --- /dev/null +++ b/community-staging/scantailor/build-fix.patch @@ -0,0 +1,16 @@ +diff -wbBur scantailor-0.9.10/zones/EditableZoneSet.h scantailor-0.9.10.my/zones/EditableZoneSet.h +--- scantailor-0.9.10/zones/EditableZoneSet.h 2011-07-31 00:47:25.000000000 +0400 ++++ scantailor-0.9.10.my/zones/EditableZoneSet.h 2011-08-03 01:59:40.000000000 +0400 +@@ -76,6 +77,12 @@ + + EditableZoneSet(); + ++ EditableZoneSet(const EditableZoneSet& zs) ++ { ++ m_splineMap = zs.m_splineMap; ++ m_defaultProps = zs.m_defaultProps; ++ } ++ + const_iterator begin() const { return iterator(m_splineMap.begin()); } + + const_iterator end() const { return iterator(m_splineMap.end()); } |