Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source package for DEB/RPM and more #7

Closed
wants to merge 9 commits into from
Closed

Source package for DEB/RPM and more #7

wants to merge 9 commits into from

Conversation

hwsmm
Copy link

@hwsmm hwsmm commented Jun 14, 2023

This PR is basically a successor of OpenTabletDriver/OpenTabletDriver.Packaging#16.

  • Introduce install.sh which can be used whenever installing on Linux platform
  • Although OTD is a .NET program, which makes it very hard to become reproducible, you can make a DEB/RPM source package with this PR
  • BinaryTarball now uses /usr/local/lib instead of /lib as /usr should only be edited by package managers (most systems are already UsrMerge anyway)

Minor fixes:

  • Fix opentabletdriver.desktop to comply with its spec
  • libevdev does not exist on openSUSE, so I just used soname for a workaround
  • postinst script color is broken on zypper (openSUSE) so it's removed for now
${BOLD_YELLOW}Run the daemon by invoking 'otd-daemon', or by enabling opentabletdriver.service${RESET}
(6/6) Installing: opentabletdriver-0.6.1.0-1.x86_64 ......................[done]`

hwsmm added 9 commits June 14, 2023 07:31
DEB can directly extract it without saving, and RPM can pipe to gzip to make tar.gz
I could make another function for both purposes, but it works well so far
package.sh now makes udev rules to reduce code duplication in each platform
/usr/local can be used by 'users' when installing packages locally instead of using package managers
dpkg/rpmbuild will run package.sh in their build script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant