updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / gtk2-ia_ora / PKGBUILD
blob5bbe5037d367418ef9dc66ca24102268097130ae
1 # Maintainer: Dan Serban
2 # Contributor: imrahil <hugo_alobo@hotmail.com>
4 pkgname=gtk2-ia_ora
5 pkgver=1.0.25
6 pkgrel=1
7 pkgdesc="Default Mageia theme for GTKv2"
8 url=http://www.mageia.org/en/
9 arch=(i686 x86_64)
10 license=GPL
11 depends=(gtk2)
12 makedepends=(lynx rpmextract)
13 _mageia_repo_arch=i586
14 [ "${CARCH}" == "x86_64" ] && _mageia_repo_arch=x86_64
16 _url_prefix="http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/${_mageia_repo_arch}/media/core/release/"
18 build()
20   rm *.rpm 2>/dev/null || true
21   msg "Locating remote source files..."
22   lynx -dump ${_url_prefix} | grep -o http.*ia_ora.*${_mageia_repo_arch}.rpm > tmpfile.txt
23   msg "Downloading, extracting and packaging..."
24   _url=$(grep "/libia_ora-gnome-1" tmpfile.txt)
25   wget ${_url}
26   rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -
27   _url=$(grep "/ia_ora-gnome-1" tmpfile.txt)
28   wget ${_url}
29   rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -
30   _url=$(grep "/ia_ora-xfce-1" tmpfile.txt)
31   wget ${_url}
32   rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -