|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2014 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2014,2016 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-epubcheck}
|
|
|
|
|
VERSION=${VERSION:-3.0.1}
|
|
|
|
|
VERSION=${VERSION:-4.0.1}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.zip}
|
|
|
|
|
WGET=${WGET:-https://github.com/IDPF/epubcheck/releases/download/v$VERSION/$ARCHIVE}
|
|
|
|
|
|
|
|
|
@ -70,14 +70,14 @@ unzip $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME
|
|
|
|
|
chmod 755 lib licenses
|
|
|
|
|
mkdir -p $PKG/usr/lib/epubcheck
|
|
|
|
|
install -m 644 epubcheck-$VERSION.jar $PKG/usr/lib/epubcheck/
|
|
|
|
|
install -m 644 epubcheck.jar $PKG/usr/lib/epubcheck/
|
|
|
|
|
cp -r lib $PKG/usr/lib/epubcheck/lib
|
|
|
|
|
|
|
|
|
|
# Install launch script
|
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
|
cat > $PKG/usr/bin/epubcheck <<EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exec java -jar /usr/lib/epubcheck/epubcheck-$VERSION.jar "\$@"
|
|
|
|
|
exec java -jar /usr/lib/epubcheck/epubcheck.jar "\$@"
|
|
|
|
|
EOF
|
|
|
|
|
chmod 755 $PKG/usr/bin/epubcheck
|
|
|
|
|
|
|
|
|
|