Commit e53011bb authored by Maxime Accadia's avatar Maxime Accadia
Browse files

Basic deb packaging script

parent be968be9
jpg
unsplash
design-linux-uga*
notes.md
Package: design-linux-uga
Version: 1.0
Section: custom
Priority: optional
Architecture: all
Essential: no
Maintainer: maxime.accadia@univ-grenoble-alpes.fr
Description: Fonds d'écran et éléments de design UGA pour Linux
#!/bin/bash
sed -i 's%^#logo=.*%logo="/usr/share/pixmaps/logo.png"%'
update-initramfs -u
#!/bin/bash
sed -i 's%^logo=.*%#logo="/usr/share/pixmaps/logo.png"%'
update-initramfs -u
#!/usr/bin/env bash
set -e
FAKEROOT="$(pwd)/design-linux-uga"
rm -rf "$FAKEROOT"
mkdir -p "$FAKEROOT/usr/share/backgrounds/uga"
mkdir -p "$FAKEROOT/usr/share/initramfs-tools/"
mkdir -p "$FAKEROOT/usr/share/gnome-background-properties/"
mkdir -p "$FAKEROOT/usr/share/plymouth"
mkdir -p "$FAKEROOT/usr/share/pixmaps"
mkdir -p "$FAKEROOT/usr/share/icons"
mkdir -p "$FAKEROOT/DEBIAN"
cp debian/control "$FAKEROOT/DEBIAN"
cp debian/postinst "$FAKEROOT/DEBIAN"
cp debian/postrm "$FAKEROOT/DEBIAN"
chmod 0755 "$FAKEROOT/DEBIAN/postinst"
chmod 0755 "$FAKEROOT/DEBIAN/postrm"
# fonds d'écrans
which inkscape || sudo apt install inkscape
which mogrify || sudo apt install imagemagick
cd wallpapers
make
make INSTALL_ROOT="$FAKEROOT" install
cd -
# plymouth
install -m 644 plymouth/logo "$FAKEROOT/usr/share/initramfs-tools/conf-hooks.d"
install -m 644 plymouth/logo.png "$FAKEROOT/usr/share/plymouth"
# icons
install -m 644 icons/folder-uga.svg "$FAKEROOT/usr/share/icons"
# GDM3
install -m 644 gdm3/logo.png "$FAKEROOT/usr/share/pixmaps"
dpkg-deb --build design-linux-uga
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment