Created
March 16, 2025 14:09
-
-
Save aequabit/62a85e528a14efa3366843fa8c0df59a to your computer and use it in GitHub Desktop.
flameshot-flamodem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://aur.archlinux.org/packages/flameshot-git | |
pkgname=flameshot-flamodem | |
_pkgname=flameshot | |
pkgver=r1968.9c395736 | |
pkgrel=1 | |
pkgdesc="Powerful yet simple to use screenshot software" | |
arch=('i686' 'x86_64') | |
url="https://github.com/aequabit/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 flameshot-git) | |
source=("git+https://github.com/aequabit/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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment