blob: 08b0f89f6f004bb509e7896694344eb029174bef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# generate .SRCINFO from PKGBUILD
# bleh - this should really be handled by makepkg!
(
. ./PKGBUILD
if [ -z "${pkgbase}" ]; then
printf 'pkgbase = %s\n' "${pkgname}"
else
printf 'pkgbase = %s\n' "${pkgbase}"
fi
printf '\tarch = %s\n' "${arch[@]}"
for print in 'makedepends' 'checkdepends' 'depends' 'provides'; do
eval printf '\t'"${print}"' = %s\n' $(echo '${'"${print}"'[@]}')
for a in 'i686'; do
eval printf '\t'"${print}"' = %s\n' $(echo '${'"${print}_${a}"'[@]}')
done
done
printf 'pkgname = %s\n' "${pkgname[@]}"
) > .SRCINFO
|