2024-11-09 15:31:01 +01:00
|
|
|
#! /usr/bin/make -f
|
|
|
|
|
|
|
|
## See debhelper(7) (uncomment to enable).
|
|
|
|
## Output every command that modifies files on the build system.
|
|
|
|
export DH_VERBOSE = 1
|
|
|
|
|
|
|
|
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
|
|
|
export PATH := $(PATH):/root/.cargo/bin
|
|
|
|
|
|
|
|
override_dh_prep:
|
|
|
|
# amd64 build prep
|
|
|
|
ifeq (amd64-v3,$(PIKA_BUILD_ARCH))
|
|
|
|
export RUSTFLAGS = -C target-cpu=x86-64-v3 -C opt-level=3
|
|
|
|
endif
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
/root/.cargo/bin/cargo fetch
|
2024-11-09 15:37:41 +01:00
|
|
|
/root/.cargo/bin/cargo build -p lact --release
|
2024-11-09 15:31:01 +01:00
|
|
|
|
|
|
|
override_dh_install:
|
|
|
|
dh_install
|
2024-11-09 15:37:41 +01:00
|
|
|
mkdir -p debian/lact/usr/bin/
|
|
|
|
mkdir -p debian/lact/usr/share/applications/
|
|
|
|
mkdir -p debian/lact/usr/share/pixmaps/
|
|
|
|
mkdir -p debian/lact/usr/share/icons/hicolor/scalable/apps/
|
|
|
|
mkdir -p debian/lact/usr/lib/systemd/system/
|
|
|
|
install -Dm644 res/lactd.service debian/lact/usr/lib/systemd/system/lactd.service
|
|
|
|
install -Dm644 res/io.github.lact-linux.desktop debian/lact/usr/share/applications/io.github.lact-linux.desktop
|
|
|
|
install -Dm644 res/io.github.lact-linux.png debian/lact/usr/share/pixmaps/io.github.lact-linux.png
|
|
|
|
install -Dm644 res/io.github.lact-linux.svg debian/lact/usr/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg
|
|
|
|
install -Dm755 target/release/lact debian/lact/usr/bin/lact
|