updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / chromium-libpdf / PKGBUILD
blobabe976b9275824b6cae179d883e95df06b3234a9
1 # Contributor: Dmitriy Morozov <archlinux@foxcub.org> 
3 pkgname=chromium-libpdf
4 pkgver=LATEST
5 pkgrel=5
6 pkgdesc="libpdf plugin for Chromium"
7 url="http://wiki.archlinux.org/index.php/Chromium#libpdf.so"
8 arch=("i686" "x86_64")
9 license="non-free"
10 depends=('chromium')
12 case $CARCH in
13   i686)   libpdf_arch="i386"  ;;
14   x86_64) libpdf_arch="amd64" ;;
15 esac
17 build() {
18   cd "$srcdir"
20   wget "http://dl.google.com/linux/direct/google-chrome-unstable_current_$libpdf_arch.deb"
22   bsdtar xvf "google-chrome-unstable_current_$libpdf_arch.deb" data.tar.lzma
23   bsdtar xvf data.tar.lzma opt/google/chrome/libpdf.so
25   install -Dm755 opt/google/chrome/libpdf.so "$pkgdir/usr/lib/chromium/libpdf.so"