acroread: added patch for new coreutils, thanks to Simon Glossner
This commit is contained in:
parent
5ba6c49a90
commit
00bd415154
@ -1 +1,2 @@
|
|||||||
4834f13ee45c7b1be263fb89aa49d212 AdobeReader_enu-7.0.8-1.i386.tar.gz
|
4834f13ee45c7b1be263fb89aa49d212 AdobeReader_enu-7.0.8-1.i386.tar.gz
|
||||||
|
0e1641bd90c5721284c691944c2b7ba0 acroread-expr.patch
|
||||||
|
@ -6,8 +6,9 @@
|
|||||||
|
|
||||||
name=acroread
|
name=acroread
|
||||||
version=7.0.8
|
version=7.0.8
|
||||||
release=1
|
release=2
|
||||||
source=(http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.8/enu/AdobeReader_enu-7.0.8-1.i386.tar.gz)
|
source=(http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.8/enu/AdobeReader_enu-7.0.8-1.i386.tar.gz \
|
||||||
|
$name-expr.patch)
|
||||||
PKGMK_NO_STRIP="yes"
|
PKGMK_NO_STRIP="yes"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@ -22,4 +23,7 @@ build() {
|
|||||||
sed -i 's|REPLACE_ME|/usr/lib/Acrobat7/Reader|g' bin/acroread
|
sed -i 's|REPLACE_ME|/usr/lib/Acrobat7/Reader|g' bin/acroread
|
||||||
ln -sf /usr/lib/Acrobat7/bin/acroread $PKG/usr/bin/acroread
|
ln -sf /usr/lib/Acrobat7/bin/acroread $PKG/usr/bin/acroread
|
||||||
find . -type d | xargs chmod 755
|
find . -type d | xargs chmod 755
|
||||||
|
|
||||||
|
cd $PKG/usr/lib/Acrobat7/bin
|
||||||
|
patch < $SRC/$name-expr.patch
|
||||||
}
|
}
|
||||||
|
21
acroread/acroread-expr.patch
Normal file
21
acroread/acroread-expr.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- acroread.orig 2006-08-04 01:45:40.000000000 +0200
|
||||||
|
+++ acroread 2006-08-04 01:47:39.000000000 +0200
|
||||||
|
@@ -455,13 +455,13 @@
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
- len_version=`expr length $version`
|
||||||
|
- base_version=`expr substr "${base_version}0000000000" 1 $len_version`
|
||||||
|
- len_base_version=`expr length $base_version`
|
||||||
|
+ len_version=`expr length "$version"`
|
||||||
|
+ base_version=`expr substr "${base_version}0000000000" 1 "$len_version"`
|
||||||
|
+ len_base_version=`expr length "$base_version"`
|
||||||
|
|
||||||
|
while [ $len_version -gt $len_base_version ]; do
|
||||||
|
- base_version=`expr substr "${base_version}0000000000" 1 $len_version`
|
||||||
|
- len_base_version=`expr length $base_version`
|
||||||
|
+ base_version=`expr substr "${base_version}0000000000" 1 "$len_version"`
|
||||||
|
+ len_base_version=`expr length "$base_version"`
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $version -ge $base_version ]; then
|
Loading…
x
Reference in New Issue
Block a user