summaryrefslogtreecommitdiff
path: root/bin/mksrcinfo
blob: e412178d9b122bf7f009d634be3e99a69351ceaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# 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[@]}"
  printf '\tmakedepends = %s\n' "${makedepends[@]}"
  printf '\tcheckdepends = %s\n' "${checkdepends[@]}"
  printf '\tdepends = %s\n' "${depends[@]}"
  printf '\tprovides = %s\n' "${provides[@]}"
  printf 'pkgname = %s\n' "${pkgname[@]}"
) > .SRCINFO