2024-10-04 19:40:00 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
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))
|
|
|
|
# Does not support LTO due to dylib-lto
|
|
|
|
#export RUSTFLAGS = -C target-cpu=x86-64-v3 -C lto=fat -C embed-bitcode -C codegen-units=1 -C opt-level=3 -Zdylib-lto
|
|
|
|
export RUSTFLAGS = -C target-cpu=x86-64-v3 -C opt-level=3
|
|
|
|
endif
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh ${@}
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
cargo fetch
|
|
|
|
cargo build --release
|
2024-10-05 00:50:31 +02:00
|
|
|
mkdir -p debian/pikman-update-manager/usr/bin/
|
|
|
|
mkdir -p debian/pikman-update-manager/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
mkdir -p debian/pikman-update-manager/usr/share/glib-2.0/schemas/
|
|
|
|
mkdir -p debian/pikman-update-manager/usr/share/applications
|
|
|
|
mkdir -p debian/pikman-update-manager/usr/share/icons/hicolor/scalable/apps
|
|
|
|
mkdir -p debian/pikman-update-manager/etc/xdg/autostart
|
|
|
|
cp -vf target/release/pikman-update-manager debian/pikman-update-manager/usr/bin/
|
|
|
|
cp -vf data/pikman-update-manager-autostart debian/pikman-update-manager/usr/bin/
|
|
|
|
cp -vf data/flatpak-installer debian/pikman-update-manager/usr/bin/
|
|
|
|
cp -vf data/software-properties-gtk debian/pikman-update-manager/usr/bin/
|
|
|
|
cp -vf target/release/apt_update debian/pikman-update-manager/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
cp -vf target/release/apt_full_upgrade debian/pikman-update-manager/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
cp -vf data/modify_repo.sh debian/pikman-update-manager/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
cp -vf data/*.gschema.xml debian/pikman-update-manager/usr/share/glib-2.0/schemas/
|
|
|
|
cp -vf data/com.github.pikaos-linux.pikmanupdatemanager.svg debian/pikman-update-manager/usr/share/icons/hicolor/scalable/apps/
|
|
|
|
cp -vf data/*.desktop debian/pikman-update-manager/usr/share/applications/
|
|
|
|
cp -vfr data/polkit-1 debian/pikman-update-manager/usr/share/
|
|
|
|
cp -vf data/pikman-update-manager-autostart.desktop debian/pikman-update-manager/etc/xdg/autostart/
|
|
|
|
chmod 755 debian/pikman-update-manager/usr/bin/pikman-update-manager
|
|
|
|
chmod 755 debian/pikman-update-manager/usr/bin/pikman-update-manager-autostart
|
|
|
|
chmod 755 debian/pikman-update-manager/usr/bin/flatpak-installer
|
|
|
|
chmod 755 debian/pikman-update-manager/usr/bin/software-properties-gtk
|
|
|
|
chmod 755 debian/pikman-update-manager/usr/lib/pika/pikman-update-manager/scripts/*
|