File: rules

package info (click to toggle)
distorm3 3.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,380 kB
  • sloc: ansic: 11,843; python: 4,979; cs: 1,749; java: 1,478; cpp: 146; makefile: 85
file content (20 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE=1

# The lib SONAME version:
LIB_S_VERSION=3
# The lib real version:
LIB_R_VERSION=3.4.1

DESTDIR=$(CURDIR)/debian/libdistorm3-3
TEMPDEB=$(CURDIR)/debian/tmp

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,-soname,libdistorm3.so.$(LIB_S_VERSION) -Wl,-z,now

%:
	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_install-arch:
	dh_install
	cp $(TEMPDEB)/usr/lib/python2.7/dist-packages/distorm3/libdistorm3.so \
           $(DESTDIR)/usr/lib/libdistorm3.so.$(LIB_R_VERSION)