foxit reader for linux 1.0 SlackBuild 脚本
时间:2009-04-23
来源:互联网
foxit reader for Linux 终于出了1.0正式版。
在slackware下写了简单的脚本方便大家用。
到官方网站上下载 rpm包。
脚本如下 foxit-reader.SlackBuild
slack-desc 文件
在slackware下写了简单的脚本方便大家用。
到官方网站上下载 rpm包。
脚本如下 foxit-reader.SlackBuild
代码:
#!/bin/sh
# Slackware build script for foxit-reader for linux
PRGNAM=foxit-reader
VERSION=${VERSION:-1.0}
ARCH=${ARCH:-i386}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
rpm2targz $CWD/FoxitReader-$VERSION-1.$ARCH.rpm
tar xvzf *.tar.gz
rm *.tar.gz
# rename the desktop file name
cd usr/share/applications
mv fedora-Foxit-Reader.desktop foxit-reader.desktop
# fix the perm right
cd $PKG
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -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 {} \;
# add the link
( cd $PKG/usr/bin
ln -s FoxitReader foxitreader
)
# rip the file
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
代码:
# HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. |-----handy-ruler-----------------------------------------| foxit-reader: Foxit Reader for Desktop Linux foxit-reader: foxit-reader: Foxit Reader is a free PDF document viewer for the foxit-reader: Linux platform, with a new streamlined interface, foxit-reader: user-customized toolbar, incredibly small size, foxit-reader: breezing-fast launch speed and rich features. foxit-reader: foxit-reader: Foxit Reader for Desktop Linux is provided by Foxit foxit-reader: Software Company free for non-commercial use. foxit-reader: foxit-reader: home: http://www.foxitsoftware.com/
作者: ginkgo 发布时间: 2009-04-23
slackbuilds.org is a good place to go
作者: grissiom 发布时间: 2009-04-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28















