[arch-commits] Commit in flameshot/trunk (PKGBUILD)
Jiachen Yang
farseerfc at archlinux.org
Mon Sep 21 07:20:17 UTC 2020
Date: Monday, September 21, 2020 @ 07:20:16
Author: farseerfc
Revision: 711142
upgpkg: flameshot 0.8.0-1: flameshot 0.8.0
Modified:
flameshot/trunk/PKGBUILD
----------+
PKGBUILD | 46 +++++++++++++---------------------------------
1 file changed, 13 insertions(+), 33 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-21 07:17:35 UTC (rev 711141)
+++ PKGBUILD 2020-09-21 07:20:16 UTC (rev 711142)
@@ -2,49 +2,29 @@
# Contributor: xyzzy <628208 at gmail.com>
pkgname=flameshot
-pkgver=0.6.0
-pkgrel=4
+pkgver=0.8.0
+pkgrel=1
pkgdesc="Powerful yet simple to use screenshot software"
arch=('x86_64')
url="https://github.com/lupoDharkael/flameshot"
license=('GPL')
depends=('qt5-svg' 'hicolor-icon-theme')
-makedepends=('make' 'qt5-tools')
-source=("https://github.com/lupoDharkael/flameshot/archive/v${pkgver}.tar.gz"
- "fix311.patch::https://github.com/lupoDharkael/flameshot/commit/415b059fb248eec4b4ee3be85a1594ce99bfce67.patch"
- "pr470.patch::https://patch-diff.githubusercontent.com/raw/lupoDharkael/flameshot/pull/470.patch"
- "pr678.patch::https://patch-diff.githubusercontent.com/raw/lupoDharkael/flameshot/pull/678.patch"
- )
-sha256sums=('61b3a1969d6e17d80d5d90a3fce53ca5ae78fa21f9a45e5a19b0b32ea815a589'
- 'ab73202901f9f531ce7b3cc7d59c026a00ea347f9aeef1bc427b97154bb741d5'
- 'cffd645935583d0b5b77b163e38063d457500f706003b4014ef5ed4620f14b49'
- '4d373238da105734ea25097c4f088bd204285b9df9e2b1a7a2f71142c49dbf00')
-install="${pkgname}.install"
+makedepends=('make' 'qt5-tools' 'cmake')
+source=("https://github.com/lupoDharkael/flameshot/archive/v${pkgver}.tar.gz")
+sha256sums=('41d04c1ccb5c492768d6b66252b554ff1e5fec11fccb7bb0bdb8ae878dd01909')
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- ## fix https://github.com/lupoDharkael/flameshot/issues/311
- patch -Np1 -i ../fix311.patch
- ## fix https://github.com/lupoDharkael/flameshot/issues/459
- ## see https://github.com/lupoDharkael/flameshot/pull/470
- patch -Np1 -i ../pr470.patch
-
- ## fix issues #564 #265 #650
- ## see https://github.com/lupoDharkael/flameshot/pull/678
- patch -Np1 -i ../pr678.patch
-
- ## add a version number from pkgver
- sed -i "s|TAG_VERSION = .*|TAG_VERSION = v${pkgver}|" flameshot.pro
-}
-
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- qmake CONFIG+=packaging BASEDIR="${pkgdir}"
+ mkdir build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make INSTALL_ROOT="${pkgdir}" install
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ make DESTDIR="${pkgdir}" install
+
+ # provided by zsh-completions so exclude from packaging
+ rm ${pkgdir}/usr/share/zsh/site-functions/_flameshot
}
More information about the arch-commits
mailing list