updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / chromium-browser-l10n-ppa / PKGBUILD
blob30bcbefb3bfc1b5820f3a2570ac07634b712d8f4
1 # $Id:$
2 # Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
3 # Maintainer: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
5 pkgname=chromium-browser-l10n-ppa
6 _pkgname=${pkgname%-ppa}
7 _pkgver=svn20120105r116462
8 _pkgpre=18.0.997.0~
9 _pkgsuf=0ubuntu1~ucd1~natty
10 pkgver=18.0.997.0.116462
11 pkgrel=1
12 pkgdesc="The open-source project behind Google Chrome (Language Localization)"
13 arch=('any')
14 url=https://launchpad.net/chromium-browser/
15 license=('custom:BSD')
16 depends=("chromium-browser-ppa>=$pkgver")
17 provides=("${_pkgname}")
19 case "$CARCH" in
20     any|i686|x86_64)
21         _bldarch='all'
22         md5sums=('ab2d443875c18f0d5d5847179a0cc706');;
23     # The following should not happen; provided you're using 'makepkg' ;)
24     *) error "Unknown or invalid CARCH=$CARCH"; exit 1
25 esac
27 _url=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser
28 source=(${_url}/${_pkgname}_${_pkgpre}${_pkgver}-${_pkgsuf}_${_bldarch}.deb)
30 build() {
31     msg2 "Extracting files..."
32     cd "$srcdir"
33     ar x ${_pkgname}_${_pkgpre}${_pkgver}-${_pkgsuf}_${_bldarch}.deb
34     tar xf data.tar.lzma -C $pkgdir
35     msg2 "Making it nice..."
36     mkdir -p $pkgdir/usr/share/licenses/${pkgname}
37     ln -s /usr/share/doc/${_pkgname}/copyright $pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt
40 # vim:set ts=4 sw=4 et: