diff options
author | collector1871 | 2017-03-19 16:24:24 +0100 |
---|---|---|
committer | collector1871 | 2017-03-19 16:24:24 +0100 |
commit | a676cb80b54e92e41bd3a7e859e8e235002a222e (patch) | |
tree | 03f3d7b5bce8fbf44fe2d1be92b08313b89cea7a | |
parent | f8c2fb818c00a453a81351fb046cccb5eb44c018 (diff) | |
download | aur-a676cb80b54e92e41bd3a7e859e8e235002a222e.tar.gz |
changes..
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | epub2pdf.sh | 2 |
2 files changed, 20 insertions, 2 deletions
@@ -5,5 +5,21 @@ pkgdesc="epub2pdf is a command-line tool that quickly generates PDF files from E arch=('any') url="http://epub2pdf.com" license=('GPL3') -depends=('java-runtime') -source=("$url/files/epub2pdf-0.5.zip") +depends=('java-runtime>=6') +source=("$url/files/epub2pdf-0.5.zip" +"epub2pdf.sh") +md5sums=('7189ee61628a72dfdb89120aa9e86a89' +'SKIP') + +package() { + mkdir -p ${pkgdir}/usr/share/java/epub2pdf/ + cd ${srcdir}/${pkgname}/ + rm -f ./epub2pdf.bat + rm -f ./epub2pdf.sh + cp -R * ${pkgdir}/usr/share/java/epub2pdf/ + find ${pkgdir}/usr/share/java/epub2pdf/* -type f -exec chmod 644 {} \; + find ${pkgdir}/usr/share/java/epub2pdf/* -type d -exec chmod 755 {} \; + mkdir -p ${pkgdir}/usr/bin/ + install -Dm755 ${srcdir}/epub2pdf.sh \ + ${pkgdir}/usr/bin/epub2pdf || return 1 +} diff --git a/epub2pdf.sh b/epub2pdf.sh new file mode 100644 index 000000000000..91cd5497dfbf --- /dev/null +++ b/epub2pdf.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/sbin/java -jar /usr/share/java/epub2pdf/epub2pdf.jar $@ |