-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_deb.sh
More file actions
executable file
·35 lines (28 loc) · 953 Bytes
/
build_deb.sh
File metadata and controls
executable file
·35 lines (28 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Script to build a Debian package for Logitech-Marble-Labwc
APP_NAME="logitech-marble-labwc"
VERSION="1.0"
PKG_DIR="${APP_NAME}_${VERSION}_all"
echo "Building Debian package $PKG_DIR..."
# Create structure
mkdir -p "$PKG_DIR/DEBIAN"
mkdir -p "$PKG_DIR/usr/bin"
# Create control file
cat <<EOF > "$PKG_DIR/DEBIAN/control"
Package: $APP_NAME
Version: $VERSION
Section: utils
Priority: optional
Architecture: all
Depends: python3, labwc
Maintainer: ldl805 <ldl805@github.com>
Description: Logitech Trackman Marble Scroll Emulation for Labwc
A configuration utility to enable scroll wheel emulation for the
Logitech Trackman Marble (T-BC21) trackball in the Labwc Wayland compositor.
EOF
# Copy application files (rename install.py to the package name)
cp install.py "$PKG_DIR/usr/bin/$APP_NAME"
chmod 755 "$PKG_DIR/usr/bin/$APP_NAME"
# Build package
dpkg-deb --build --root-owner-group "$PKG_DIR"
echo "Package built: ${PKG_DIR}.deb"