contrib/grim/Pkgfile

27 lines
773 B
Plaintext

# Description: Screenshot utility for Wayland
# URL: https://github.com/emersion/grim
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: pango wayland-protocols
# Optional: libjpeg-turbo scdoc
name=grim
version=1.4.0
release=2
source=(https://github.com/emersion/grim/archive/v$version/$name-$version.tar.gz
89e02e663fabc534b7e7039514f60a8c5d70070d.patch)
build() {
prt-get isinst bash-completion && PKGMK_GRIM+=' -D bash-completions=true'
patch -Np1 -d $name-$version -i $SRC/89e02e663fabc534b7e7039514f60a8c5d70070d.patch
meson setup $name-$version build $PKGMK_GRIM \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
meson compile -C build
DESTDIR=$PKG meson install -C build
}