Skip to content

Source package for DEB/RPM and more#7

Closed
hwsmm wants to merge 9 commits intoX9VoiD:hotfix-packagingfrom
hwsmm:hotfix-packsrc
Closed

Source package for DEB/RPM and more#7
hwsmm wants to merge 9 commits intoX9VoiD:hotfix-packagingfrom
hwsmm:hotfix-packsrc

Conversation

@hwsmm
Copy link
Copy Markdown

@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