1 # Maintainer: Dan Serban
2 # Contributor: imrahil <hugo_alobo@hotmail.com>
7 pkgdesc="Default Mageia theme for GTKv2"
8 url=http://www.mageia.org/en/
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/"
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)
26 rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -
27 _url=$(grep "/ia_ora-gnome-1" tmpfile.txt)
29 rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -
30 _url=$(grep "/ia_ora-xfce-1" tmpfile.txt)
32 rpm2cpio $(basename ${_url}) | bsdtar -x -C "${pkgdir}" -f -