-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdeb-stm8flash.py
More file actions
executable file
·35 lines (29 loc) · 934 Bytes
/
deb-stm8flash.py
File metadata and controls
executable file
·35 lines (29 loc) · 934 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
#!/usr/bin/env python3
from deblib import *
# General config
set_name("stm8flash")
remove_old_buildtree()
set_homepage("https://github.com/vdudouyt/stm8flash.git")
#Download it
git_clone("https://github.com/vdudouyt/stm8flash.git")
set_version("0.1", gitcount=True)
add_version_suffix("-deb1")
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_just_make(install_cmd=f"DESTDIR=debian/{get_name()} make install && mv debian/{get_name()}/usr/local/bin debian/{get_name()}/usr/bin")
#install_usr_dir_to_package("usr/include", "dev")
#install_usr_dir_to_package("usr/share", "doc")
write_rules()
build_depends += ["libusb-1.0-0-dev"]
#Create control file
intitialize_control()
control_add_package(description="STM8 SWIM flash utility")
#Build it
commandline_interface()