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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
JAVA_HOME=/usr/lib/jvm/default-java
include /usr/share/dpkg/default.mk
%:
dh $@ --with javahelper --with python3 --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
rm -f metastudent.1
override_dh_auto_install:
dh_auto_install
find debian/metastudent -regex ".*/knn_weighted\|.*/CafaWrapper1\.pl\|.*/CafaWrapper2\.pl\|.*/CafaWrapper3\.pl\|.*/CafaWrapper3_new\.pl\|.*/exercise3\.pl\|.*/treehandler\.pl\|.*/validate\.pl" -exec chmod +x {} \;
mv *.jar $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/metastudent/
# configuration files should reside in /etc
mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)/etc
# accordint to manpage <sysconfdir>/metastudentrc overrides /usr/share/metastudent/metastudentrc.default
cp -a $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/metastudent/metastudentrc.default $(CURDIR)/debian/$(DEB_SOURCE)/etc/metastudentrc
find . -name .settings -type d | xargs rm -rf
# lkajan 20140106:
# The jars in d/metastudent.jlibs are for use by this package only, and should not end up in /usr/share/java.
override_jh_installlibs:
exit 0;
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
|