Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created August 26, 2024 01:43
Show Gist options
  • Save lidgnulinux/f407945dbef38edfe96704c2d3922924 to your computer and use it in GitHub Desktop.
Save lidgnulinux/f407945dbef38edfe96704c2d3922924 to your computer and use it in GitHub Desktop.
Example of package recipe for dragora distro.
# Build recipe for slurp.
set -e
program=slurp
version=1.5.0
release=0
pkgcategory=x-apps
tarname=${program}-${version}.tar.gz
fetch=https://github.com/emersion/slurp/archive/v1.5.0/$tarname
description="Interaction screen selection on Wayland compositors."
homepage=https://wayland.emersion.fr/slurp/
license="MIT"
build()
{
unpack "${tardir}/$tarname"
cd "$srcdir"
# Set sane permissions
chmod -R u+w,go-w,a+rX-s .
meson setup -Dman-pages=disabled --prefix=/usr . output
meson compile -C output
DESTDIR="$destdir" meson install --no-rebuild -C output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment