Re: Debian packaging with meson
2017-02-18 0:29 GMT+01:00 Simon McVittie <smcv@debian.org>:
> On Fri, 17 Feb 2017 at 18:08:01 -0500, Jeremy Bicha wrote:
>> GNOME 3.24 modules have begun including meson build scripts.
>
> It looks as though Meson approximately follows the Autotools-like
> build pipeline that dh assumes, so something like this should work:
>
> override_dh_auto_clean:
> rm -fr debian/build
>
> override_dh_auto_configure:
> mkdir -p debian/build
> cd debian/build && meson \
> --prefix=/usr \
> ... more options ... \
> CFLAGS="${CFLAGS}" \
> ... more compiler flags ...
> ../..
>
> override_dh_auto_build:
> cd debian/build && ninja -v
>
> override_dh_auto_test:
> cd debian/build && ninja test
>
> override_dh_auto_install:
> cd debian/build && DESTDIR=${CURDIR}/debian/tmp ninja install
>
> (This is all entirely untested and based on what was said in
> <https://bugs.debian.org/795253>.)
I use Meson to build the appstream-generator package:
https://anonscm.debian.org/git/pkg-packagekit/appstream-generator.git/tree/debian/rules
It's really easy to use already, debhelper integration would be pretty
neat though.
Cheers,
Matthias
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
Reply to: