This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules
executable file
·58 lines (44 loc) · 1.83 KB
/
rules
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/make -f
PACKAGE = psi-plus
DEBIAN_PATH := $(abspath $(dir $(MAKEFILE_LIST)))
USCAN_REPORT = $(shell uscan --noconf --report --dehs $(DEBIAN_PATH))
CUR_VER = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
CUR_URL = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-url>\(.*\)<\/upstream-url>.*/\1/p')
export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
BUILDDIR1 = $(CURDIR)/debian/builddir1
BUILDDIR2 = $(CURDIR)/debian/builddir2
DESTDIR = $(CURDIR)/debian/tmp
CMAKEOPTS = -DBUNDLED_IRIS=ON \
-DONLY_PLUGINS=OFF \
-DUSE_HUNSPELL=ON \
-DUSE_ENCHANT=OFF \
-DSEPARATE_QJDNS=OFF \
-DUSE_QT5=ON \
-DUSE_WEBENGINE=OFF \
-DUSE_CCACHE=OFF \
-DVERBOSE_PROGRAM_NAME=ON
OPTSSTEP1 = -DENABLE_PLUGINS=ON \
-DENABLE_WEBKIT=OFF
OPTSSTEP2 = -DENABLE_PLUGINS=OFF \
-DENABLE_WEBKIT=ON
%:
dh $@ --buildsystem=cmake --parallel --list-missing
override_dh_auto_configure:
dh_auto_configure -B$(BUILDDIR1) -- $(CMAKEOPTS) $(OPTSSTEP1)
dh_auto_configure -B$(BUILDDIR2) -- $(CMAKEOPTS) $(OPTSSTEP2)
override_dh_auto_build:
dh_auto_build -B$(BUILDDIR1)
dh_auto_build -B$(BUILDDIR2)
override_dh_auto_test:
dh_auto_test -B$(BUILDDIR1)
dh_auto_test -B$(BUILDDIR2)
override_dh_auto_install:
dh_auto_install -B$(BUILDDIR1) --destdir=$(DESTDIR)
cp -a $(BUILDDIR2)/psi/psi-plus-webkit $(DESTDIR)/usr/bin/
cp -a $(CURDIR)/debian/psi-plus*.desktop $(DESTDIR)/usr/share/applications/
cp -a $(CURDIR)/skins $(DESTDIR)/usr/share/psi-plus/
cp -a $(CURDIR)/themes $(DESTDIR)/usr/share/psi-plus/
get-orig-source:
wget -c "$(CUR_URL)" -O "$(PACKAGE)_$(CUR_VER).orig.tar.gz"