-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
378f73a
commit 83f28c8
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ cmake_install.cmake | |
joycond | ||
install_manifest.txt | ||
.ccls-cache | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
# This is a hacky little script to generate a deb. | ||
# | ||
# NOTE: This only works for building an arm64 .deb as is. Change | ||
# the Architecture below if desired. | ||
|
||
architecture="arm64" | ||
install_root="$(pwd)/build/deb/joycond" | ||
package_version="0.1-0" | ||
|
||
mkdir -p "$install_root" || exit | ||
cmake . || exit | ||
make DESTDIR="$install_root" install || exit | ||
|
||
cd "$install_root" || exit | ||
|
||
mkdir -p DEBIAN | ||
cd DEBIAN || exit | ||
|
||
cat <<EOF > control | ||
Package: joycond | ||
Architecture: $architecture | ||
Maintainer: Daniel J. Ogorchock | ||
Priority: optional | ||
Version: $package_version | ||
Description: Pairs joy-cons together into a virtual controller | ||
Depends: libevdev2, libudev1 | ||
EOF | ||
|
||
cat <<EOF > conffiles | ||
EOF | ||
|
||
cat <<EOF > postinst | ||
#!/bin/bash | ||
echo "Enabling and starting joycond service..." | ||
systemctl enable --now joycond | ||
EOF | ||
chmod 755 postinst | ||
|
||
cd ../.. | ||
|
||
fakeroot dpkg-deb --build joycond || exit |