Package Details: scantailor-advanced-git v1.0.18.r16.gdc6f160-2

Git Clone URL: https://aur.archlinux.org/scantailor-advanced-git.git (read-only, click to copy)
Package Base: scantailor-advanced-git
Description: Interactive post-processing tool for scanned pages that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
Upstream URL: https://github.com/ScanTailor-Advanced/scantailor-advanced
Licenses: GPL3
Conflicts: scantailor, scantailor-advanced
Provides: scantailor
Submitter: boredland
Maintainer: rvasilev
Last Packager: rvasilev
Votes: 7
Popularity: 0.030410
First Submitted: 2018-04-06 09:13 (UTC)
Last Updated: 2023-04-22 17:50 (UTC)

Pinned Comments

rvasilev commented on 2020-05-05 17:22 (UTC) (edited on 2023-04-01 17:44 (UTC) by rvasilev)

https://github.com/arch-noob/scantailor-advanced-git for issues and PRs

01.04.2023 This package was updated with other upstream repo.

Latest Comments

sirocco commented on 2023-04-22 06:44 (UTC)

    cmake --build . --parallel ${nproc}
    make -j${nproc}

these lines prevent the package from being built on my computer (i3-4010U/4GB/ssd)

no problem with that option

    cmake --build . 
    make
$ grep MAKEFLAGS /etc/makepkg.conf
MAKEFLAGS="-j2"

simonzack commented on 2021-10-16 05:50 (UTC)

Use the following to fix CMake Error: Unknown argument --build:

mkdir build && cd build
cmake -G "Unix Makefiles" ..
cmake --build . --parallel ${nproc}
make -j${nproc}

homocomputeris commented on 2021-09-16 22:57 (UTC) (edited on 2021-09-16 22:58 (UTC) by homocomputeris)

CMake Error: Unknown argument --build

$ LC_ALL=en_US paru -S scantailor-advanced-git 
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) scantailor-advanced-git-v1.0.16.r119.gf6c8e5b-2

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
/usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
==> Making package: scantailor-advanced-git v1.0.16.r121.g3d1e74e-1 (Sat Aug 28 20:36:44 2021)
==> Retrieving sources...
  -> Updating scantailor-advanced git repo...
Fetching origin
==> Validating source files with sha256sums...
    scantailor-advanced ... Skipped
/usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
==> Making package: scantailor-advanced-git v1.0.16.r121.g3d1e74e-1 (Sat Aug 28 20:36:45 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating scantailor-advanced git repo...
Fetching origin
==> Validating source files with sha256sums...
    scantailor-advanced ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of scantailor-advanced git repo...
Cloning into 'scantailor-advanced'...
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US)
done.
==> Starting pkgver()...
==> Sources are ready.
scantailor-advanced-git-v1.0.16.r119.gf6c8e5b-2: parsing pkg list...
/usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
==> Making package: scantailor-advanced-git v1.0.16.r121.g3d1e74e-1 (Sat Aug 28 20:36:47 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Error: Unknown argument --build
CMake Error: Run 'cmake --help' for all supported options.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'scantailor-advanced-git-v1.0.16.r119.gf6c8e5b-2': 
error: packages failed to build: scantailor-advanced-git-v1.0.16.r119.gf6c8e5b-2

rvasilev commented on 2020-05-05 17:22 (UTC) (edited on 2023-04-01 17:44 (UTC) by rvasilev)

https://github.com/arch-noob/scantailor-advanced-git for issues and PRs

01.04.2023 This package was updated with other upstream repo.

homocomputeris commented on 2020-04-07 12:01 (UTC)

This builds fine:

pkgname=scantailor-advanced-git
pkgver=v1.0.16.r119.gf6c8e5b
pkgrel=1
pkgdesc="Interactive post-processing tool for scanned pages that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes. "
arch=("x86_64")
url="https://github.com/4lex4/scantailor-advanced"
license=("GPL3")
depends=(
    "boost-libs"
    "libjpeg"
    "libpng"
    "libtiff"
    "qt5-base"
    "zlib"
    )
makedepends=(
    "boost"
    "cmake"
    "qt5-tools"
    "qt5-svg"
    )
provides=("scantailor-advanced")
conflicts=("scantailor-advanced")
source=("scantailor-advanced::git+https://github.com/4lex4/scantailor-advanced")
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    export LDFLAGS="-L/usr/local/lib,--rpath=/usr/local/lib"
    export LD_LIBRARY_PATH="/usr/local/lib"
    export CFLAGS="-fPIC"
    export CXXFLAGS="-fPIC"

    cd "${srcdir}/${pkgname%-git}"
    mkdir build && cd build
    cmake -G "Unix Makefiles" --build ..
    make -j${nproc}
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    cd build
    make DESTDIR="${pkgdir}" install
}

Fifis commented on 2020-02-26 16:21 (UTC) (edited on 2020-02-26 16:54 (UTC) by Fifis)

This version cannot be built out of the box: CMake Error at CMakeLists.txt:5 (message): FATAL: In-source builds are not allowed. You should create a separate directory for build files. -- Configuring incomplete, errors occurred!


Please check the comment by misc in order to fix the mistake.

misc commented on 2019-12-14 19:39 (UTC) (edited on 2020-01-18 12:27 (UTC) by misc)

Suggested update, esp. as in-source builds are now disallowed:

build(): [via instructions as on github]

cd "$srcdir/${pkgname%-git}"

mkdir build && cd build

cmake -G "Unix Makefiles" --build .. \ -DCMA…

make -j `nproc`

cd in package() accordingly += /build