| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all,-canary |
| 4 |
|
| 5 |
DPKG_EXPORT_BUILDFLAGS := 1 |
| 6 |
DPKG_EXPORT_BUILDTOOLS := 1 |
| 7 |
|
| 8 |
include /usr/share/dpkg/buildflags.mk |
| 9 |
include /usr/share/dpkg/buildtools.mk |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=none --builddir=build |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
CC="$(CC_FOR_BUILD)" CFLAGS="$(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DBOOTSTRAP_NO_SAMU" LDFLAGS="$(LDFLAGS_FOR_BUILD)" ./bootstrap.sh build |
| 16 |
build/muon-bootstrap setup \ |
| 17 |
-Dprefix=/usr \ |
| 18 |
-Dauto_features=enabled \ |
| 19 |
-Dwrap_mode=nodownload \ |
| 20 |
-Dsamurai=disabled \ |
| 21 |
-Dreadline=bestline \ |
| 22 |
-Dtracy=disabled \ |
| 23 |
-Dui=disabled \ |
| 24 |
-Dwebsite=disabled \ |
| 25 |
build |
| 26 |
ninja -C build --verbose |
| 27 |
|
| 28 |
# Meson's fs module tests require HOME to be a valid directory |
| 29 |
override_dh_auto_test: |
| 30 |
mkdir build/home |
| 31 |
HOME=$$(realpath build/home) build/muon -C build test -v |
| 32 |
rm -rf build/home |
| 33 |
|
| 34 |
override_dh_auto_install: |
| 35 |
DESTDIR=$(CURDIR)/debian/muon-meson build/muon -C build install |
| 36 |
|
| 37 |
execute_after_dh_auto_install: |
| 38 |
mv debian/muon-meson/usr/bin/muon debian/muon-meson/usr/bin/muon-meson |
| 39 |
mv debian/muon-meson/usr/share/man/man1/muon.1 debian/muon-meson/usr/share/man/man1/muon-meson.1 |