[arch-commits] Commit in flameshot/trunk (PKGBUILD flameshot.install)
Jiachen Yang
farseerfc at archlinux.org
Sat Feb 24 14:29:00 UTC 2018
Date: Saturday, February 24, 2018 @ 14:28:59
Author: farseerfc
Revision: 297929
upgpkg: flameshot 0.5.1-1
flameshot 0.5.1
Added:
flameshot/trunk/flameshot.install
Modified:
flameshot/trunk/PKGBUILD
-------------------+
PKGBUILD | 17 ++++++-----------
flameshot.install | 9 +++++++++
2 files changed, 15 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-02-24 14:06:28 UTC (rev 297928)
+++ PKGBUILD 2018-02-24 14:28:59 UTC (rev 297929)
@@ -2,8 +2,8 @@
# AUR Maintainer: xyzzy <628208 at gmail.com>
pkgname=flameshot
-pkgver=0.5.0
-pkgrel=4
+pkgver=0.5.1
+pkgrel=1
pkgdesc="Powerful yet simple to use screenshot software"
arch=('x86_64')
url="https://github.com/lupoDharkael/flameshot"
@@ -10,22 +10,17 @@
license=('GPL')
depends=('qt5-base')
makedepends=('make' 'qt5-tools')
-provides=('flameshot')
source=("https://github.com/lupoDharkael/flameshot/archive/v${pkgver}.tar.gz")
-sha256sums=('32d593c14c37286d9f64873c4ef9a07eb084723c92b2280d5c22152547c1e3f0')
+sha256sums=('35220eabb8c4203abb0732c63e0b4d955e17ddd0c03c3d2c7a5beb875728e44e')
+install="${pkgname}.install"
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- qmake
+ qmake CONFIG+=packaging BASEDIR="${pkgdir}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- install -Dm755 "./flameshot" "${pkgdir}/usr/bin/flameshot"
- install -Dm644 "./dbus/package/org.dharkael.Flameshot.service" "${pkgdir}/usr/share/dbus-1/services/org.dharkael.Flameshot.service"
- install -Dm644 "./dbus/org.dharkael.Flameshot.xml" "${pkgdir}/usr/share/dbus-1/interfaces/org.dharkael.Flameshot.xml"
- install -Dm644 "./docs/desktopEntry/package/flameshot.desktop" "${pkgdir}/usr/share/applications/flameshot.desktop"
- install -Dm644 "./docs/desktopEntry/package/flameshot-init.desktop" "${pkgdir}/usr/share/applications/flameshot-init.desktop"
- install -Dm644 "./img/flameshot.png" "${pkgdir}/usr/share/icons/flameshot.png"
+ make install
}
Added: flameshot.install
===================================================================
--- flameshot.install (rev 0)
+++ flameshot.install 2018-02-24 14:28:59 UTC (rev 297929)
@@ -0,0 +1,9 @@
+post_upgrade(){
+ if [ $(vercmp $2 0.5.1) -lt 0 ]; then
+ post_install
+ fi
+}
+
+post_install(){
+ echo "See the link about keyboard shortcuts: https://github.com/lupoDharkael/flameshot#keyboard-shortcuts"
+}
More information about the arch-commits
mailing list