### this file is sourced not run
PKGVER=2.7
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=fop-$PKGVER-bin.tar.gz
MD5SUM=97fdb716759c2d1c525f1ea8191f51b3
SRC_URL="https://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/fop/binaries/${TARBALL}&action=download"
BUNDLE=

SLACKREQ= # some sort of Java, of course, either Oracle or OpenJDK's one.
SLACKDESC="java-fop: java-fop $PKGVER (Create PDF)
java-fop: 
java-fop: Apache™ FOP (Formatting Objects Processor) is a print formatter 
java-fop: driven by XSL formatting objects (XSL-FO) and an output independent 
java-fop: formatter. It is a Java application that reads a formatting object 
java-fop: (FO) tree and renders the resulting pages to a specified output. 
java-fop: Output formats currently supported include PDF, PS, PCL, AFP, XML 
java-fop: (area tree representation), Print, AWT and PNG, and to a lesser 
java-fop: extent, RTF and TXT. The primary output target is PDF.
java-fop: 
java-fop: https://xmlgraphics.apache.org/fop/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd tmp
	mkdir -p /opt &&
	mv fop* /opt/fop-$PKGVER &&
	
	ln -s fop-$PKGVER /opt/fop &&
	ln -s /opt/fop/fop/fop /usr/bin/fop &&
	
	pkg_build_slackdesc
}
