diff options
author | root <root@rshg054.dnsready.net> | 2011-08-03 23:14:34 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-03 23:14:34 +0000 |
commit | 8c2359e2541f9d1b11443b49d8ea502b3ffea39c (patch) | |
tree | 035176ef2ab4dbaabda40150109c203887d83ed7 /community/scantailor | |
parent | 991d38faccf4e1fb27f31f236ad58ee840103734 (diff) |
Wed Aug 3 23:14:34 UTC 2011
Diffstat (limited to 'community/scantailor')
-rw-r--r-- | community/scantailor/PKGBUILD | 25 | ||||
-rw-r--r-- | community/scantailor/build-fix.patch | 16 |
2 files changed, 35 insertions, 6 deletions
diff --git a/community/scantailor/PKGBUILD b/community/scantailor/PKGBUILD index 34d6976de..96c166249 100644 --- a/community/scantailor/PKGBUILD +++ b/community/scantailor/PKGBUILD @@ -1,22 +1,35 @@ -# $Id: PKGBUILD 33966 2010-11-29 21:42:36Z spupykin $ +# $Id: PKGBUILD 53336 2011-08-03 00:10:13Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Denis Terskov aka neurosurgeon <terskov.den@gmail.com> pkgname=scantailor -pkgver=0.9.9.2 +pkgver=0.9.10 pkgrel=1 pkgdesc="Interactive post-processing tool for scanned pages" arch=(i686 x86_64) url="http://scantailor.sourceforge.net" license="GPL" depends=('qt') -makedepends=('cmake boost') -source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('0944b12c936019fe12269c7a356d60d0') +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 - cmake -DCMAKE_INSTALL_PREFIX=/usr + 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/scantailor/build-fix.patch b/community/scantailor/build-fix.patch new file mode 100644 index 000000000..85b620020 --- /dev/null +++ b/community/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()); } |