[arch-commits] Commit in gpicview/trunk (PKGBUILD gpicview.appdata.xml)
Balló György
bgyorgy at archlinux.org
Fri Apr 30 16:48:52 UTC 2021
Date: Friday, April 30, 2021 @ 16:48:51
Author: bgyorgy
Revision: 925378
upgpkg: gpicview 0.2.5-6: Drop gtk2 support, add AppStream metadata file
Added:
gpicview/trunk/gpicview.appdata.xml
Modified:
gpicview/trunk/PKGBUILD
----------------------+
PKGBUILD | 50 +++++++++++++++----------------------------------
gpicview.appdata.xml | 29 ++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 34 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-30 16:21:29 UTC (rev 925377)
+++ PKGBUILD 2021-04-30 16:48:51 UTC (rev 925378)
@@ -3,23 +3,26 @@
# Contributor: Angel Velasquez <angvp at archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
-pkgbase=gpicview
-pkgname=(gpicview gpicview-gtk3)
+pkgname=gpicview
pkgver=0.2.5
-pkgrel=5
+pkgrel=6
pkgdesc='Lightweight image viewer'
arch=('x86_64')
+url='https://www.lxde.org/'
license=('GPL2')
-url='https://lxde.org/'
-depends=('gtk2' 'gtk3')
+groups=('lxde')
+depends=('gtk3')
makedepends=('intltool')
-source=(https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz
- 0001-Fix-displaying-images-with-GTK3.patch)
+replaces=('gpicview-gtk3')
+source=("https://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.xz"
+ 'gpicview.appdata.xml'
+ '0001-Fix-displaying-images-with-GTK3.patch')
sha256sums=('38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942'
+ 'dab79b2be536005044cc5edcc4f47e9f407a5fcf3126110a1ef2ab65c873dbf7'
'f597fa7d5e8537665ea7bdf7bfffebaa32046e8feb4866866bfb64c219d8ea6d')
prepare() {
- cd $pkgbase-$pkgver
+ cd $pkgname-$pkgver
# Fix displaying images with GTK3
# https://sourceforge.net/p/lxde/patches/542/
@@ -30,34 +33,13 @@
}
build() {
- # GTK+ 2 version
- [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
- cd gtk2
- ./configure --sysconfdir=/etc --prefix=/usr
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --enable-gtk3
make
-
- cd "$srcdir"
- # GTK+ 3 version
- [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
- cd gtk3
- ./configure --sysconfdir=/etc --prefix=/usr --enable-gtk3
- make
}
-package_gpicview() {
- groups=('lxde')
- depends=('gtk2')
-
- cd gtk2
+package() {
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
+ install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
}
-
-package_gpicview-gtk3() {
- groups=('lxde-gtk3')
- pkgdesc+=' (GTK+ 3 version)'
- depends=('gtk3')
- conflicts=('gpicview')
-
- cd gtk3
- make DESTDIR="$pkgdir" install
-}
Added: gpicview.appdata.xml
===================================================================
--- gpicview.appdata.xml (rev 0)
+++ gpicview.appdata.xml 2021-04-30 16:48:51 UTC (rev 925378)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+ <id>org.lxde.gpicview</id>
+ <launchable type="desktop-id">gpicview.desktop</launchable>
+ <name>Image Viewer</name>
+ <summary>View your images easily</summary>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0</project_license>
+ <developer_name>LXDE team</developer_name>
+ <description>
+ <p>GPicView is the standard picture viewer of LXDE. GPicView features lightning fast startup and an intuitive interface.</p>
+ <p>Features:</p>
+ <ul>
+ <li>Extremely lightweight and fast with low memory usage</li>
+ <li>Very suitable for default image viewer of a desktop system</li>
+ <li>Simple and intuitive interface</li>
+ <li>Minimal lib dependency: Only pure GTK is used</li>
+ <li>Desktop independent: Doesn't require any specific desktop environment</li>
+ </ul>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image>https://wiki.lxde.org/en/images/9/9e/Gpicview.png</image>
+ </screenshot>
+ </screenshots>
+ <url type="bugtracker">https://sourceforge.net/p/lxde/bugs/search/?q=labels:gpicview</url>
+ <url type="homepage">https://www.lxde.org/</url>
+ <translation type="gettext">gpicview</translation>
+</component>
More information about the arch-commits
mailing list