summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-20 12:40:34 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-20 12:40:34 -0300
commitad290ca3c2545ec7f5d7980efbe0e573767d5994 (patch)
treea87ec3e3c7bdcc2ee7311b989202c890bcbe6c89
parentbd6c4657611cb103b6d42cb562a8ceafbe7029c9 (diff)
ABS to recutilsfauno/recutils
-rwxr-xr-xtryrec51
1 files changed, 51 insertions, 0 deletions
diff --git a/tryrec b/tryrec
new file mode 100755
index 0000000..18bd7bd
--- /dev/null
+++ b/tryrec
@@ -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