diff options
Diffstat (limited to 'office/pdf2djvu')
-rw-r--r-- | office/pdf2djvu/pdf2djvu.SlackBuild | 22 | ||||
-rw-r--r-- | office/pdf2djvu/pdf2djvu.info | 6 |
2 files changed, 15 insertions, 13 deletions
diff --git a/office/pdf2djvu/pdf2djvu.SlackBuild b/office/pdf2djvu/pdf2djvu.SlackBuild index 43a665b917..f789066794 100644 --- a/office/pdf2djvu/pdf2djvu.SlackBuild +++ b/office/pdf2djvu/pdf2djvu.SlackBuild @@ -24,13 +24,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pdf2djvu -VERSION=${VERSION:-0.9.4} +VERSION=${VERSION:-0.9.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -61,14 +61,15 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/${PRGNAM}-${VERSION}.tar.xz +tar xvf $CWD/${PRGNAM}-${VERSION}.tar.?z cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -87,10 +88,11 @@ make test make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/COPYING doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/office/pdf2djvu/pdf2djvu.info b/office/pdf2djvu/pdf2djvu.info index 29faf44f88..f9ff3f109c 100644 --- a/office/pdf2djvu/pdf2djvu.info +++ b/office/pdf2djvu/pdf2djvu.info @@ -1,8 +1,8 @@ PRGNAM="pdf2djvu" -VERSION="0.9.4" +VERSION="0.9.5" HOMEPAGE="http://jwilk.net/software/pdf2djvu" -DOWNLOAD="https://bitbucket.org/jwilk/pdf2djvu/downloads/pdf2djvu-0.9.4.tar.xz" -MD5SUM="bb4ce32b199301b754c77d0c4aa83410" +DOWNLOAD="https://github.com/jwilk/pdf2djvu/releases/download/0.9.5/pdf2djvu-0.9.5.tar.xz" +MD5SUM="4c78d594db304dca7435592eb85e15a4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="nose GraphicsMagick" |