Debian Codegraph @

PKGBUILD

raw
1 pkgname=flameshot-git
2 _pkgname=flameshot
3 pkgver=r2022.277eb2f4
4 pkgrel=1
5 pkgdesc="Powerful yet simple to use screenshot software"
6 arch=('i686' 'x86_64' 'aarch64' 'armv7h')
7 url="https://github.com/flameshot-org/flameshot"
8 license=('GPL-3.0-or-later')
9 depends=('qt6-base' 'qt6-svg' 'hicolor-icon-theme' 'kguiaddons')
10 makedepends=('qt6-tools' 'cmake' 'ninja')
11 optdepends=(
12 'gnome-shell-extension-appindicator: for system tray icon if you are using Gnome'
13 'xdg-desktop-portal: for wayland support, you will need the implementation for your wayland desktop environment'
14 'qt6-imageformats: for additional export image formats (e.g. tiff, webp, and more)'
15 )
16 provides=(flameshot)
17 conflicts=(flameshot)
18 source=()
19
20 prepare() {
21 cp -R "${startdir}/" "${srcdir}/${_pkgname}/"
22 }
23
24 pkgver() {
25 cd "${srcdir}/${_pkgname}"
26
27 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
28 }
29
30 build() {
31 cd "${srcdir}/${_pkgname}"
32
33 cmake -GNinja -B build -S . \
34 -DCMAKE_BUILD_TYPE=None \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DUSE_WAYLAND_CLIPBOARD=1 \
37 -DDISABLE_UPDATE_CHECKER=1 \
38
39 cmake --build build
40 }
41
42 package() {
43 cd "${srcdir}/${_pkgname}"
44
45 DESTDIR="${pkgdir}" cmake --install build
46 }