2024-01-24 20:17:19 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
|
|
# dh-make output file, you may use that output file without restriction.
|
|
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2024-02-20 21:30:45 +01:00
|
|
|
export PATH := "/root/.cargo/bin:$(PWD):$(PATH)"
|
|
|
|
|
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
|
|
|
|
#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/
|
|
|
|
cp -rvf data/scripts/*.py debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/
|
|
|
|
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
|
|
|
|
chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/*.py
|
|
|
|
mkdir -p debian/pika-installer-gtk4/usr/share/applications
|
|
|
|
mkdir -p debian/pika-installer-gtk4/usr/share/icons/hicolor/scalable/apps
|
|
|
|
#cp -vf data/pika-drivers.svg debian/pika-installer-gtk4/usr/share/icons/hicolor/scalable/apps/
|
|
|
|
#cp -vf data/com.pika.drivers.desktop debian/pika-installer-gtk4/usr/share/applications/
|
|
|
|
#makepot debian/pika-installer-gtk4/usr/share/locale
|
|
|
|
|
2024-01-24 20:17:19 +01:00
|
|
|
|
|
|
|
override_dh_missing:
|
|
|
|
dh_missing
|
|
|
|
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.desktop debian/pika-installer-gtk4/usr/share/applications/
|
|
|
|
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/
|
|
|
|
|
|
|
|
|
|
|
|
|