Skip to content
Myr

PKGBUILD

This file

Path

PKGBUILD

58 lines · 1.4 KiB

Last changed by

Merge branch 'releases/1.15'Daniel Eklöfbefore adoptionfa178b8

History of this file

Take it

1CAIRO=disabled       # disabled|enabled2PNG_BACKEND=libpng   # none|libpng3SVG_BACKEND=resvg    # none|librsvg|nanosvg|resvg (librsvg force-enables cairo, nanosvg is bundled)45pkgname=fuzzel6pkgver=1.15.07pkgrel=18pkgdesc="Simplistic application launcher for wayland"9arch=('x86_64' 'aarch64')10url=https://codeberg.org/dnkl/fuzzel11license=(mit)12makedepends=('meson' 'ninja' 'scdoc' 'wayland-protocols' 'tllist>=1.0.1')13depends=('libxkbcommon' 'wayland' 'pixman' 'fcft>=3.0.0' 'fcft<4.0.0')14source=()15changelog=CHANGELOG.md1617if [[ ${PNG_BACKEND} == libpng ]]; then18    depends+=( 'libpng' )19fi2021if [[ ${SVG_BACKEND} == librsvg ]]; then22    depends+=( 'librsvg' )23    CAIRO=enabled24fi2526if [[ ${SVG_BACKEND} == resvg ]]; then27    depends+=( 'resvg' )28fi2930if [[ ${SVG_BACKEND} == nanosvg ]]; then31    depends+=( 'nanosvg' )32fi3334if [[ ${CAIRO} == enabled ]]; then35    depends+=( 'cairo' )36fi3738pkgver() {39  cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||40      head -3 ../meson.build | grep version | cut -d "'" -f 241}4243build() {44  meson setup \45      --prefix=/usr                \46      --buildtype=release          \47      --wrap-mode=nofallback       \48      -Denable-cairo=${CAIRO}      \49      -Dpng-backend=${PNG_BACKEND} \50      -Dsvg-backend=${SVG_BACKEND} \51      -Dsystem-nanosvg=enabled     \52      ..53  ninja54}5556package() {57  DESTDIR="${pkgdir}/" ninja install58}