Date: Monday, April 25, 2022 @ 13:45:52 Author: spupykin Revision: 1190016
upgpkg: unpaper 7.0.0-1 Modified: unpaper/trunk/PKGBUILD ----------+ PKGBUILD | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-04-25 13:39:11 UTC (rev 1190015) +++ PKGBUILD 2022-04-25 13:45:52 UTC (rev 1190016) @@ -2,36 +2,29 @@ # Contributor: Andreas Hauser <andy-...@splashground.de> pkgname=unpaper -pkgver=6.1 -pkgrel=9 +pkgver=7.0.0 +pkgrel=1 pkgdesc="post-processing tool for scanned sheets of paper" arch=('x86_64') -url="https://github.com/Flameeyes/unpaper" +url="https://github.com/unpaper/unpaper" license=("GPL") depends=('ffmpeg') -makedepends=('libxslt' 'docbook-xsl') -source=("$pkgname-${pkgver}.tar.gz::https://github.com/Flameeyes/unpaper/archive/unpaper-$pkgver.tar.gz" +makedepends=('libxslt' 'docbook-xsl' 'meson' 'python-sphinx') +source=("$pkgname-${pkgver}.tar.gz::https://github.com/unpaper/unpaper/releases/download/unpaper-$pkgver/unpaper-$pkgver.tar.xz" ffmpeg5.patch) -sha256sums=('213f8143b3361dde3286537eb66aaf7cdd7e4f5e7bde42ac6e91020997a81f1d' +sha256sums=('2575fbbf26c22719d1cb882b59602c9900c7f747118ac130883f63419be46a80' 'f0d2d96ce399acb41ab8392855f857fcd0e3b1e5d869bb5753a90633c4dfb977') -prepare() { - cd "$srcdir"/unpaper-unpaper-$pkgver - aclocal - automake --add-missing - autoconf - -# Fix build with FFmpeg 5 - patch -p1 -i ../ffmpeg5.patch -} - build() { - cd "$srcdir"/unpaper-unpaper-$pkgver - ./configure --prefix=/usr - make + cd "$srcdir"/unpaper-$pkgver + arch-meson . build + meson compile -C build } package() { - cd "$srcdir"/unpaper-unpaper-$pkgver - make install DESTDIR="$pkgdir" + cd "$srcdir"/unpaper-$pkgver + meson install -C build --destdir "$pkgdir" + install -dm0755 "$pkgdir"/usr/share/doc/ + cp -a doc "$pkgdir"/usr/share/doc/unpaper + install -D README.md NEWS "$pkgdir"/usr/share/doc/unpaper/ }