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

Initial debian package support #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ src/x64
.project
.idea
cmake-build-*
debian/debhelper-build-stamp
debian/files
debian/libmirisdr5.debhelper.log
debian/libmirisdr5.substvars
debian/libmirisdr5
debian/.debhelper
obj-x86_64-linux-gnu/
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)

# Set the version information here
set(VERSION_INFO_MAJOR_VERSION 4) # increment major on api compatibility changes
set(VERSION_INFO_MAJOR_VERSION 5) # increment major on api compatibility changes
set(VERSION_INFO_MINOR_VERSION 0) # increment minor on feature-level changes
set(VERSION_INFO_PATCH_VERSION git) # increment patch for bug fixes and docs
include(Version) # setup version info
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libmirisdr5 (1.1.3-1) UNRELEASED; urgency=medium

* Initial release.

-- ericek111 <erik@brocko.eu> Sat, 22 Jun 2024 09:28:27 +1000
18 changes: 18 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Source: libmirisdr5
Section: hamradio
Priority: optional
Maintainer: ericek111 <erik@brocko.eu>
Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 13), cmake, libusb-1.0-0-dev
Standards-Version: 4.7.0
Homepage: https://github.com/ericek111/libmirisdr-5
#Vcs-Browser: https://salsa.debian.org/debian/libmirisdr5
Vcs-Git: https://github.com/ericek111/libmirisdr-5.git

Package: libmirisdr5
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, libusb-1.0-0
Conflicts: libmirisdr4
Multi-Arch: same
Description: Library for Mirics-based devices
Software support for the Mirics based software defined radio devices
1 change: 1 addition & 0 deletions debian/libmirisdr5.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mirisdr.rules /etc/udev/rules.d
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/make -f
%:
dh $@ --buildsystem=cmake

override_dh_auto_configure:
dh_auto_configure --buildsystem=cmake -- -DDETACH_KERNEL_DRIVER=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo