-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdeb-zeromq.py
executable file
·47 lines (41 loc) · 1.46 KB
/
deb-zeromq.py
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
42
43
44
45
46
47
#!/usr/bin/env python3
from deblib import *
# General config
set_name("libzmq5")
set_homepage("http://zeromq.org")
#Download it
pkgversion = "4.2.1"
set_version(pkgversion)
add_version_suffix("-deb3")
wget_download("https://github.com/zeromq/libzmq/releases/download/v{}/zeromq-{}.tar.gz".format(pkgversion, pkgversion))
set_debversion(1)
# 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_autotools(targets=["all", "dist"])
install_usr_dir_to_package("usr/include", "dev")
install_usr_dir_to_package("usr/share", "doc")
write_rules()
build_depends += ["libunwind8", "libunwind-dev", "zip", "libsodium-dev", "pkg-config"]
#Create control file
intitialize_control()
control_add_package(
provides=["libzmq1", "libzmq3", "libzmq4"],
depends=["libsodium18", "libunwind8"],
description="ZeroMQ (0MQ) lightweight messaging kernel")
control_add_package("dev",
provides=["libzmq-dev", "libzmq1-dev", "libzmq3-dev", "libzmq4-dev"],
depends=["{} (= {})".format(get_name(), get_debversion())],
arch_specific=False,
description="ZeroMQ (0MQ) lightweight messaging kernel (development files)")
control_add_package("doc",
provides=["libzmq-doc", "libzmq1-doc", "libzmq3-doc", "libzmq4-dev"],
arch_specific=False,
description="ZeroMQ (0MQ) lightweight messaging kernel (documentation)")
#Build it
commandline_interface()