Date: Sunday, May 23, 2021 @ 13:47:55 Author: bgyorgy Revision: 943359
upgpkg: djview 4.12-2: Adopt the package, disable browser plugin, add AppStream metadata Added: djview/trunk/djvulibre-djview4.appdata.xml Modified: djview/trunk/PKGBUILD -------------------------------+ PKGBUILD | 36 +++++++++++++++++++----------------- djvulibre-djview4.appdata.xml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-05-23 13:47:38 UTC (rev 943358) +++ PKGBUILD 2021-05-23 13:47:55 UTC (rev 943359) @@ -1,36 +1,38 @@ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> # Contributor: Paulo Matias <matias.archlinux-br.org> # Contributor: Leslie P. Polzer <polzer.gnu.org> # Contributor: erm67 <erm67.yahoo.it> # Contributor: Daniel J Griffiths -# Maintainer: Gaetan Bisson <[email protected]> +# Contributor: Gaetan Bisson <[email protected]> pkgname=djview pkgver=4.12 -pkgrel=1 -pkgdesc='Portable DjVu viewer and browser plugin' +pkgrel=2 +pkgdesc='Viewer for DjVu documents' +arch=('x86_64') url='http://djvu.sourceforge.net/djview4.html' -license=('GPL') -arch=('x86_64') +license=('GPL2') +depends=('qt5-base' 'djvulibre') makedepends=('qt5-tools') -depends=('qt5-base' 'djvulibre' - 'libxkbcommon-x11' 'libsm') -source=("https://downloads.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz") -sha256sums=('5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3') +source=("https://downloads.sourceforge.net/djvu/$pkgname-$pkgver.tar.gz" + 'djvulibre-djview4.appdata.xml') +sha256sums=('5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3' + '6527ff07bf11f3f2b7c79a97c5617d445343040ae070d18b52cfd4f91434c119') prepare() { - cd ${pkgname}4-${pkgver} - ./autogen.sh + cd ${pkgname}4-$pkgver + NOCONFIGURE=1 ./autogen.sh } build() { - cd ${pkgname}4-${pkgver} - export QMAKE=qmake-qt5 - ./configure --prefix=/usr + cd ${pkgname}4-$pkgver + ./configure --prefix=/usr --disable-nsdejavu make } package() { - cd ${pkgname}4-${pkgver} - make DESTDIR="${pkgdir}" install - ln -s djview "${pkgdir}"/usr/bin/djview4 + cd ${pkgname}4-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 ../djvulibre-djview4.appdata.xml "$pkgdir/usr/share/metainfo/djvulibre-djview4.appdata.xml" + ln -s djview "$pkgdir/usr/bin/djview4" } Added: djvulibre-djview4.appdata.xml =================================================================== --- djvulibre-djview4.appdata.xml (rev 0) +++ djvulibre-djview4.appdata.xml 2021-05-23 13:47:55 UTC (rev 943359) @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop-application"> + <id>net.sourceforge.djvu.DjView4</id> + <launchable type="desktop-id">djvulibre-djview4.desktop</launchable> + <name>DjView4</name> + <summary>Viewer for DjVu documents</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0</project_license> + <developer_name>Léon Bottou</developer_name> + <description> + <p>DjView4 is a portable DjVu viewer</p> + <p>Highlights:</p> + <ul> + <li>Entirely based on the public djvulibre api.</li> + <li>Entirely written in portable Qt4/Qt5.</li> + <li>Works natively under Unix/X11, MS Windows, and MacOS X.</li> + <li>Continuous scrolling of pages</li> + <li>Side-by-side display of pages</li> + <li>Ability to specify a url to the djview command</li> + <li>All plugin and cgi options available from the command line</li> + <li>All silly annotations implemented</li> + <li>Display thumbnails as a grid</li> + <li>Display outlines</li> + <li>Page names supported (see djvused command set-page-title)</li> + <li>Metadata dialog (see djvused command set-meta)</li> + <li>Implemented as reusable Qt widgets</li> + </ul> + </description> + <screenshots> + <screenshot type="default"> + <image>https://a.fsdn.com/con/app/proj/djvu/screenshots/djview.jpg</image> + </screenshot> + </screenshots> + <url type="bugtracker">https://sourceforge.net/p/djvu/bugs/</url> + <url type="homepage">http://djvu.sourceforge.net/djview4.html</url> + <update_contact>[email protected]</update_contact> +</component>
