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 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#!/usr/bin/make -f
PLUGINS_DIR=$(CURDIR)/debian/psi-plugins/usr/lib/psi/plugins/
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export QT_SELECT=qt5
PLUGINS = attentionplugin \
autoreplyplugin \
birthdayreminderplugin \
chessplugin \
cleanerplugin \
clientswitcherplugin \
conferenceloggerplugin \
contentdownloaderplugin \
enummessagesplugin \
extendedmenuplugin \
extendedoptionsplugin \
gnupgplugin \
gomokugameplugin \
historykeeperplugin \
httpuploadplugin \
imageplugin \
imagepreviewplugin \
jabberdiskplugin \
juickplugin \
messagefilterplugin \
otrplugin \
pepchangenotifyplugin \
qipxstatusesplugin \
screenshotplugin \
skinsplugin \
stopspamplugin \
storagenotesplugin \
translateplugin \
videostatusplugin \
watcherplugin
%:
dh $@
override_dh_auto_configure:
ln -sf /usr/share/psi/plugins/* ./
for PLUGIN in $(PLUGINS); do \
echo !!! build/$${PLUGIN} ; \
mkdir -p build/$${PLUGIN} ; \
cd build/$${PLUGIN} && \
qmake ../../generic/$${PLUGIN}/ ; \
cd $(CURDIR) ; \
done
override_dh_auto_build:
mkdir -p build/
for PLUGIN in $(PLUGINS); do \
echo !!! build/$${PLUGIN} ; \
cd build/$${PLUGIN} && \
make -j ; \
cd $(CURDIR) ; \
done
override_dh_auto_install:
mkdir -p "$(PLUGINS_DIR)"
find build/ -type f -name '*.so' | \
while read FILE; do \
cp -a "$${FILE}" $(PLUGINS_DIR) ; \
done
override_dh_auto_clean:
dh_clean
rm -rf build/ include/ plugins*.pri psiplugin.pri
|