pika-installer-gtk4/debian/rules

54 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

2024-07-31 14:20:30 +02:00
#! /usr/bin/make -f
2024-01-24 20:17:19 +01:00
2024-07-31 14:20:30 +02:00
## See debhelper(7) (uncomment to enable).
## Output every command that modifies files on the build system.
export DH_VERBOSE = 1
2024-01-24 20:17:19 +01:00
2024-07-31 14:20:30 +02:00
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
2024-02-20 21:30:45 +01:00
2024-01-24 20:17:19 +01:00
%:
dh $@
2024-02-20 21:30:45 +01:00
override_dh_auto_install:
/root/.cargo/bin/cargo fetch
/root/.cargo/bin/cargo build --release
2024-07-31 14:20:30 +02:00
override_dh_install:
dh_install
2024-02-20 21:30:45 +01:00
#cp -vf target/release/pika-installer-gtk4 debian/pika-installer-gtk4/usr/bin/
#chmod 755 debian/pika-installer-gtk4/usr/bin/pika-installer-gtk4
mkdir -p debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/
cp -vf target/release/pika-installer-gtk4 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/
chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
2024-02-20 21:38:10 +01:00
mkdir -p debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/
2024-02-20 21:30:45 +01:00
mkdir -p debian/pika-installer-gtk4/usr/share/glib-2.0/schemas/
cp -rvf data/scripts/*.sh debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/
2024-08-24 23:23:39 +02:00
#cp -rvf data/scripts/*.py debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/
2024-02-20 21:30:45 +01:00
cp data/*.xml debian/pika-installer-gtk4/usr/share/glib-2.0/schemas/
chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/*.sh
2024-08-24 23:23:39 +02:00
#chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/*.py
2024-02-20 21:30:45 +01:00
mkdir -p debian/pika-installer-gtk4/usr/share/applications
mkdir -p debian/pika-installer-gtk4/usr/share/icons/hicolor/scalable/apps
2024-08-21 23:22:58 +02:00
cp -vf data/com.github.pikaos-linux.pikainstallergtk4.desktop debian/pika-installer-gtk4/usr/share/applications/
2024-02-20 21:30:45 +01:00
#makepot debian/pika-installer-gtk4/usr/share/locale
2024-01-24 20:17:19 +01:00
mkdir -pv debian/pika-installer-gtk4/usr/share/applications/
mkdir -pv debian/pika-installer-gtk4/etc/xdg/autostart/
mkdir -pv debian/pika-installer-gtk4/usr/bin/
mkdir -pv debian/pika-installer-gtk4/etc/pika-installer-gtk4/
cp -vf debian/extras/pika-installer-autostart.desktop debian/pika-installer-gtk4/etc/xdg/autostart/
cp -vf debian/extras/pika-installer debian/pika-installer-gtk4/usr/bin/
chmod +x debian/pika-installer-gtk4/usr/bin/pika-installer
cp -vf debian/extras/powermanagementprofilesrc debian/pika-installer-gtk4/etc/pika-installer-gtk4/