-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdeb-opendetex.py
More file actions
executable file
·34 lines (28 loc) · 846 Bytes
/
deb-opendetex.py
File metadata and controls
executable file
·34 lines (28 loc) · 846 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
#!/usr/bin/env python3
from deblib import *
# General config
set_name("opendetex")
set_homepage("https://github.com/pkubowicz/opendetex")
#Download it
pkgversion = "2.8.2"
git_clone("https://github.com/pkubowicz/opendetex.git", branch="v" + pkgversion)
set_version(pkgversion)
add_version_suffix("-deb2")
set_debversion(1)
# Remove git
pack_source()
create_debian_dir()
build_depends += ["flex"]
#Use the existing COPYING file
copy_license()
#Create the changelog (no messages - dummy)
create_dummy_changelog()
# Create rules file
build_config_autotools(configure=False)
build_config["install"] = ["mkdir -p debian/opendetex/usr/bin/ && cp detex debian/opendetex/usr/bin/"]
write_rules()
#Create control file
intitialize_control()
control_add_package(description="OpenDetex TeX/LaTeX plaintext extractor")
#Build it
commandline_interface()