blob: 18bd7bd434fc989d329a7bdd399d5f10bfdb7718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
|