-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdeb-open62541.py
More file actions
executable file
·41 lines (35 loc) · 996 Bytes
/
deb-open62541.py
File metadata and controls
executable file
·41 lines (35 loc) · 996 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
36
37
38
39
40
41
#!/usr/bin/env python3
from deblib import *
# General config
set_name("libopen62541")
set_homepage("https://open62541.org/")
#Download it
pkgversion = "v1.4.13"
git_clone("https://github.com/open62541/open62541.git", branch=pkgversion)
set_version(pkgversion[1:])
add_version_suffix("-deb2")
set_debversion(2)
# Remove git
pack_source()
create_debian_dir()
#Use the existing COPYING file
copy_license()
#Create the changelog (no messages - dummy)
create_dummy_changelog()
# Create rules file
build_config_cmake(cmake_opts=[
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_SHARED_LIBS=ON",
])
install_usr_dir_to_package("usr/include", "dev")
write_rules()
build_depends += ["python3-dev"]
#Create control file
intitialize_control()
control_add_package(description="Open62541 OPC-UA C/C++ library")
control_add_package("dev",
arch_specific=False,
depends=[depends_main_package()],
description="Open62541 OPC-UA C/C++ library (development files)")
#Build it
commandline_interface()