blob: b2700b16638d0db4857c85ea5d04e0532fc9d5fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# -*- mode: pkgbuild -*-
# Maintainer : Jeremy Borgman <borgman.jeremy@pm.me>
# Maintainer : Mehrad Mahmoudian <m.mahmoudian@gmail.com>
# Contributor : Feresey <p.milko1999@yandex.ru>
# Contributor : j1simon <stemp@ono.com>
# Contributor : Feresey <p.milko1999@yandex.ru>
#
# Contribution Instructions:
# 0. Use this as the guide:
# https://wiki.archlinux.org/title/PKGBUILD
#
# 1. clone the git:
# ```sh
# git clone https://aur.archlinux.org/flameshot-git.git
# ```
#
# 2. Apply the changes you think are necessary to the following:
# pkgrel=
# depends=
# makedepends=
# optdepends=
# build()
#
# 3. In terminal, naviagate to the folder you have the PKGBUILD in
#
# 4. Test the modified PKGBUILD file with `make test`, or alternatively all of the following commands
# ```sh
# # remove the possible builds
# rm -f flameshot-git-r*.zst
#
# # read this for more info about namcap: https://wiki.archlinux.org/title/Namcap
# namcap -i PKGBUILD
#
# # read this for more info about makepkg: https://wiki.archlinux.org/title/Makepkg
# makepkg --syncdeps
#
# pacman -U flameshot-git-r*.zst
# ```
#
# 5. Fix any possible errors
#
# 6. create a patch with your modifications by `make patch` or alternatively:
# ```sh
# git diff --oneline --graph > my.patch
# ```
#
# 7. copy the content of the my.patch file and post it in the discussion of
# the AUR: https://aur.archlinux.org/packages/flameshot-git/
pkgname=flameshot-git
_pkgname=flameshot
pkgver=r1938.fa29bcb4
pkgrel=1
pkgdesc="Powerful yet simple to use screenshot software"
arch=('i686' 'x86_64')
url="https://github.com/flameshot-org/flameshot"
license=('GPL')
depends=(qt5-base hicolor-icon-theme qt5-svg kguiaddons5)
makedepends=(qt5-tools git cmake)
optdepends=('xdg-desktop-portal: To make Sway, Hyprland, and wlroots work'
'xdg-desktop-portal-wlr: To make Sway, Hyprland, and wlroots work'
'grim: To make Sway, Hyprland, and wlroots work'
'xdg-desktop-portal-kde: For KDE Plasma')
provides=(flameshot)
conflicts=(flameshot)
source=("git+https://github.com/flameshot-org/flameshot.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
# Get the version number. Suggested in https://gitlab.archlinux.org/pacman/pacman/blob/master/proto/PKGBUILD-vcs.proto#L49
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
cmake -S ./ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_WAYLAND_CLIPBOARD=1 \
-DUSE_WAYLAND_GRIM=true
make -j$(nproc --ignore 1)
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
}
|