| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --sourcedirectory=src |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
dh_auto_build -- \ |
| 15 |
CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -ffast-math" \ |
| 16 |
LDFLAGS="$(LDFLAGS) -Wl,--as-needed" \ |
| 17 |
appnamefull="" \ |
| 18 |
appversion="" \ |
| 19 |
weapon-names="" \ |
| 20 |
cube2font |
| 21 |
|
| 22 |
override_dh_strip: |
| 23 |
dh_strip --dbgsym-migration='cube2font-dbg (<< 1.5.1-1~)' |
| 24 |
|
| 25 |
override_dh_auto_install: |
| 26 |
make -C src/ system-install-cube2font DESTDIR=$(CURDIR)/debian/cube2font \ |
| 27 |
appnamefull="" \ |
| 28 |
appversion="" \ |
| 29 |
weapon-names="" \ |
| 30 |
prefix=/usr |
| 31 |
|
| 32 |
DIR=cube2font-$(DEB_VERSION_UPSTREAM).orig |
| 33 |
get-orig-source: |
| 34 |
uscan --noconf --rename --force-download --download-current-version --destdir=. |
| 35 |
rm -rf $(DIR) |
| 36 |
tar -xf cube2font_$(DEB_VERSION_UPSTREAM).orig.tar.gz |
| 37 |
rm -f cube2font_$(DEB_VERSION_UPSTREAM).orig.tar.gz |
| 38 |
mv base-$(DEB_VERSION_UPSTREAM) $(DIR) |
| 39 |
find $(DIR) -mindepth 1 -not -name src \ |
| 40 |
-not -name shared \ |
| 41 |
-not -name doc \ |
| 42 |
-not -name man \ |
| 43 |
-not -name cube2font.1 \ |
| 44 |
-not -wholename $(DIR)/src/Makefile \ |
| 45 |
-not -name system-install.mk \ |
| 46 |
-not -name dist.mk \ |
| 47 |
-not -name wiki.mk \ |
| 48 |
-not -wholename $(DIR)/doc/license.txt \ |
| 49 |
-not -name cube2font.c \ |
| 50 |
-not -name redeclipse.cbp \ |
| 51 |
-delete |
| 52 |
XZ="-6" tar --create --xz --owner root --group root --mode a+rX \ |
| 53 |
-f cube2font_$(DEB_VERSION_UPSTREAM).orig.tar.xz $(DIR) |
| 54 |
rm -rf $(DIR) |