public
anonymous / PKGBUILD
Created

Arch Linux package for acroread 9.5.3-1

  • Download Gist
PKGBUILD
Shell
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
 
pkgname=acroread
pkgver=9.5.3
pkgrel=1
pkgdesc="Adobe Reader is a PDF file viewer"
arch=('i686' 'x86_64')
url="http://www.adobe.com/products/reader/"
license=('custom')
depends=('desktop-file-utils')
 
if [[ "$CARCH" == 'i686' ]]; then
depends+=('gtk2' 'mesa' 'freetype2')
optdepends=('libcanberra: XDG sound support')
else
depends+=('lib32'-{'gtk2','mesa','libxml2','xcb-util','freetype2'})
optdepends=('lib32-libcanberra: XDG sound support')
fi
 
optdepends+=('acroread-fonts: CJK and extended font packs')
options=('!strip')
install=acroread.install
source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/$pkgver/enu/AdbeRdr$pkgver-1_i486linux_enu.tar.bz2)
md5sums=('aeb7cdb8b675b3e01e32233d167fb1eb')
 
build() {
cd "$srcdir/AdobeReader"
bsdtar -xf COMMON.TAR
bsdtar -xf ILINXR.TAR
cd Adobe/Reader9
 
msg2 "Installing Main Files..."
mkdir -p "$pkgdir/opt/Adobe/Reader9"
cp -a * "$pkgdir/opt/Adobe/Reader9"
 
msg2 "Installing Bin Files..."
mkdir -p "$pkgdir/usr/bin"
ln -s /opt/Adobe/Reader9/bin/acroread "$pkgdir/usr/bin"
install -Dm644 Resource/Shell/acroread.1.gz ${pkgdir}/usr/share/man/man1/acroread.1.gz
install -Dm644 Resource/Shell/acroread_tab ${pkgdir}/etc/bash_completion.d/acroread
 
msg2 "Installing Broswer Plugin..."
mkdir -p "$pkgdir/usr/lib/mozilla/plugins"
ln -s /opt/Adobe/Reader9/Browser/intellinux/nppdf.so "$pkgdir/usr/lib/mozilla/plugins"
msg2 "Installing Icon Resource..."
install -D -m644 Resource/Support/AdobeReader.desktop \
"$pkgdir/usr/share/applications/acroread.desktop"
sed -i '/^Icon/s|AdobeReader9|acroread|' \
"$pkgdir/usr/share/applications/acroread.desktop"
install -D -m644 Resource/Icons/64x64/AdobeReader9.png \
"$pkgdir/usr/share/pixmaps/acroread.png"
 
msg2 "Installing License..."
install -D -m644 Reader/Legal/en_US/License.txt \
"$pkgdir/usr/share/licenses/acroread/License.txt"
#Bash completion fix
sed -i "s/_filedir/_filedir_acroread/" "$pkgdir/etc/bash_completion.d/acroread"
}
PKGBUILD-953.patch
Diff
1 2 3 4 5 6 7 8 9 10
5,6c5,6
< pkgver=9.5.1
< pkgrel=2
---
> pkgver=9.5.3
> pkgrel=1
25c25
< md5sums=('e753016e8f11cdeaabcc576a7a320af3')
---
> md5sums=('aeb7cdb8b675b3e01e32233d167fb1eb')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.