-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathrules
More file actions
executable file
·42 lines (32 loc) · 1.3 KB
/
rules
File metadata and controls
executable file
·42 lines (32 loc) · 1.3 KB
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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#DH_VERBOSE=1
# Prevent setuptools/distribute from accessing the internet.
export http_proxy = http://127.0.0.1:9
PACKAGE=python-sqlcipher
%:
dh $@ --with python2 --buildsystem=python_distutils
override_dh_auto_build:
python$* setup.py build_with_system_sqlcipher
python$* setup.py build_py
export DEBUG_MODE=1 && export DEB_CFLAGS_MAINT_APPEND=-O0 && python$*-dbg setup.py build_with_system_sqlcipher
export DEBUG_MODE=1 && export DEB_CFLAGS_MAINT_APPEND=-O0 && python$*-dbg setup.py build_py
override_dh_auto_install:
python$* setup.py install --skip-build --root=debian/python-sqlcipher \
--install-layout=deb
python$*-dbg setup.py install --skip-build --root=debian/python-sqlcipher-dbg \
--install-layout=deb
override_dh_installdocs:
dh_installdocs
rm -rf debian/$(PACKAGE)-dbg/usr/share/doc/$(PACKAGE)-dbg
ln -s $(PACKAGE) debian/$(PACKAGE)-dbg/usr/share/doc/$(PACKAGE)-dbg
override_dh_strip:
dh_strip --dbg-package=$(PACKAGE)-dbg
override_dh_python2:
dh_python2 --no-guessing-versions
override_dh_auto_clean:
dh_auto_clean
rm -rf build
rm -rf docs/_build
rm -rf *.egg-info
find \( -name '._*' -o -name '*.pyc' \) -delete