diff options
-rwxr-xr-x | tryrec | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -0,0 +1,51 @@ +#!/bin/bash +CARCH=mips64el + +source /etc/libretools.conf + +for _repo in ${REPOS[@]}; do + msg "Processing ${_repo}" + +for p in $(find ~/projects/abslibre-mips64el/${_repo} -name PKGBUILD); do + source $p +# Remove here if you want to add more fields + unset build package conflicts replaces md5sums options + + for _p in ${pkgname[@]}; do + unset package_$_p >/dev/null 2>&1 + done + + /usr/bin/time -f "Inserting ${pkgbase:-${pkgname}} (%e seconds)" \ + recins -t ABS \ + -f Repo -v ${_repo} \ + -f PkgBase -v ${pkgbase:-${pkgname[0]}} \ + -f Path -v $(dirname $p) \ + -f Version -v ${pkgver}-${pkgrel} \ + -f URL -v "$url" \ + -f Description -v "$pkgdesc" \ + $(for s in ${pkgname[@]}; do + echo "-f PkgName -v $s " + done) \ + $(for s in ${provides[@]}; do + echo "-f Provides -v $s " + done) \ + $(for s in ${source[@]}; do + echo "-f Source -v $s " + done) \ + $(for s in ${license[@]}; do + echo "-f License -v $s " + done) \ + $(for s in ${arch[@]}; do + echo "-f Arch -v $s " + done) \ + $(for s in ${depends[@]}; do + echo "-f Depends -v $s " + done) \ + $(for s in ${makedepends[@]}; do + echo "-f MakeDepends -v $s " + done) \ + abs.rec + unset pkgbase pkgname source url pkgver pkgrel pkgdesc provides +done + +done |