summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90b0f6b6c667e8371f95320af5e390970827c245 (plain)
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
pkgname=epub2pdf
pkgver=0.5
pkgrel=2
pkgdesc="epub2pdf is a command-line tool that quickly generates PDF files from EPUB ebooks. It will run on any platform that supports JRE version 6 or later."
arch=('any')
url="http://epub2pdf.com"
license=('GPL3')
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
}