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
|
#!/usr/bin/make -f
LINK_JARS := slf4j-api logback-core logback-classic
LINK_JARS += atinject-jsr330-api fontawesomefx-fontawesome jackson-jr-objects
LINK_JARS += jackson-core hibernate-validator4 bcmail bcprov fontbox2 sejda-io sejda-commons sambox
LINK_JARS += sejda-core sejda-conversion gettext-commons geronimo-validation-1.0-spec sejda-model
LINK_JARS += commons-io eventstudio commons-lang3 sejda-sambox sejda-fonts pdfsam-injector
LINK_JARS += jboss-logging jcl-over-slf4j fontawesomefx-materialdesignfont fontawesomefx-materialicons
LINK_JARS += javafx-base javafx-controls javafx-media javafx-graphics fontawesomefx-commons thumbnailator
%:
dh $@
override_dh_install:
cp $(CURDIR)/pdfsam-basic/src/deb/icon.svg $(CURDIR)/debian/pdfsam.svg
dh_install
$(RM) -r $(CURDIR)/debian/pdfsam/usr/share/maven-repo
override_dh_link:
for JAR in $(LINK_JARS); do \
dh_link /usr/share/java/$$JAR.jar /usr/share/pdfsam/lib/$$JAR.jar; \
done
dh_link /usr/share/pdfsam/bin/pdfsam.sh /usr/bin/pdfsam
override_dh_clean:
dh_clean
$(RM) $(CURDIR)/debian/pdfsam.svg
override_dh_fixperms:
dh_fixperms
chmod a+x $(CURDIR)/debian/pdfsam/usr/share/pdfsam/bin/pdfsam.sh
|