• kixik@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 day ago

    The AUR PKGBUILD shows a pretty simple recipe:

    build() {
      arch-meson "${pkgname}-${pkgver//+/-}" build
      meson compile -C build
    }
    
    package() {
      meson install -C build --destdir "${pkgdir}"
      # permission fix
      chmod 755 "${pkgdir}/usr/bin/ascii-draw"
    }
    

    I’ve been seeing arch-meson often used, but haven’t explored what it does. Some day…

    Though it’s way more fun to use text specification, like the one referenced by @fratermus@lemmy.sdf.org

    • FuckBigTech347@lemmygrad.ml
      link
      fedilink
      arrow-up
      2
      ·
      8 hours ago

      arch-meson is a small wrapper script for meson:

      $ cat /usr/bin/arch-meson
      #!/bin/bash -ex
      # Highly opinionated wrapper for Arch Linux packaging
      
      exec meson setup \
        --prefix        /usr \
        --libexecdir    lib \
        --sbindir       bin \
        --buildtype     plain \
        --auto-features enabled \
        --wrap-mode     nodownload \
        -D              b_pie=true \
        -D              python.bytecompile=1 \
        "$@"