updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / afur-aur / afur-aur
bloba1b18041d9cb17f6b9a59da30ed324d7789396fa
1 #!/bin/sh
3 makepkg -f --config /usr/share/afur-aur/makepkg.conf32 ||return 1
4 makepkg -f --config /usr/share/afur-aur/makepkg.conf64 ||return 1
5 makepkg --source -f ||return 1
7 pack=`grep ^pkgname= PKGBUILD | sed "s/pkgname=//"`;
8 ver=`grep ^pkgver= PKGBUILD | sed "s/pkgver=//"`;
9 rel=`grep ^pkgrel= PKGBUILD | sed "s/pkgrel=//"`;
11 source=${pack}-${ver}-${rel}.src.tar.gz
13 aurploader -l ~/.aurlogconf $source &&
15 if grep arch PKGBUILD | grep -q i686 ; then
16 packa=${pack}-${ver}-${rel}-i686.pkg.tar.xz
17 afur-makepkg -s $packa $source
20 if grep arch PKGBUILD | grep -q x86_64 ; then
21 packa=${pack}-${ver}-${rel}-x86_64.pkg.tar.xz
22 afur-makepkg -s $packa $source
25 if grep arch PKGBUILD | grep -q any ; then
26 packa=${pack}-${ver}-${rel}-any.pkg.tar.xz
27 afur-makepkg -s $packa $source