Commit 1d387cf9 authored by Boyuan Yang's avatar Boyuan Yang
Browse files

debian/rules: Modernize rules file and get rid of dpkg-parsechangelog invocation

parent 629a368e
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include /usr/share/dpkg/pkg-info.mk

export TOPDIR=$(CURDIR)

%:
	dh $@ --with autoreconf --parallel
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-db-android --enable-db-open-phrase

DBVER = 1.0.0
get_db_orig:
	version=$$(dpkg-parsechangelog | grep '^Version' | cut -d ' ' -f2 | cut -d':' -f2 | cut -d'-' -f1);\
	version=$(DEB_VERSION_UPSTREAM) ; \
	wget http://pyzy.googlecode.com/files/pyzy-database-$(DBVER).tar.bz2 -O ../libpyzy_$${version}.orig-db.tar.bz2