updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acroread-chs / PKGBUILD
blob568ef6502bdf5c451db981d3b8fdfa0051f1c24d
1 # Contributor: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
3 pkgname=acroread-chs
4 pkgver=8.1.7
5 pkgrel=1
6 pkgdesc="Adobe Acrobat Reader for viewing PDF files. Chinese Version"
7 arch=('i686')
8 url="http://www.adobe.com/hk_zh/products/acrobat/"
9 license=('custom')
10 depends=('gtk2' 'mesa' 'desktop-file-utils')
11 options=('!strip')
12 install=acroread.install
13 source=(http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.7/chs/AdobeReader_chs-8.1.7-1.i486.tar.bz2)
14 md5sums=('679153c6dd74995f8bd6785baea35e27')
15 sha1sums=('a240eb4b1defa26ceaf3bcfe1526b42a65c2f1ca')
17 build() {
18   cd "$srcdir/AdobeReader"
19   bsdtar -xf COMMON.TAR || return 1
20   bsdtar -xf ILINXR.TAR || return 1
21   cd Adobe/Reader8
23   mkdir -p "$pkgdir/usr/lib/acroread" || return 1
24   cp -a * "$pkgdir/usr/lib/acroread" || return 1
26   mkdir -p "$pkgdir/usr/bin" || return 1
27   ln -s /usr/lib/acroread/bin/acroread "$pkgdir/usr/bin" || return 1
29   mkdir -p "$pkgdir/usr/lib/mozilla/plugins" || return 1
30   ln -s /usr/lib/acroread/Browser/intellinux/nppdf.so "$pkgdir/usr/lib/mozilla/plugins" || return 1
32   install -D -m644 Resource/Support/AdobeReader.desktop \
33     "$pkgdir/usr/share/applications/acroread.desktop" || return 1
34   sed -i 's|AdobeReader8.png|acroread|' \
35     "$pkgdir/usr/share/applications/acroread.desktop" || return 1
36   install -D -m644 Resource/Icons/64x64/AdobeReader8.png \
37     "$pkgdir/usr/share/pixmaps/acroread.png" || return 1
39   install -D -m644 Reader/Legal/zh_CN/License.txt \
40     "$pkgdir/usr/share/licenses/acroread/License.txt" || return 1