File: gpgme-config

package info (click to toggle)
python-upstream-ontologist 0.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 424 kB
  • sloc: python: 262; makefile: 25
file content (29 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (5)
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
#!/bin/bash

# Parse gpgme-config-like flags, then invoke `pkg-config gpgme`:
# * Pass --cflags and --libs through
# * Map --version to --modversion
# * Ignore --thread=pthread

# Parse flags
for arg in "$@"; do
  case "$arg" in
	--cflags|--libs|--modversion)
	  flags="$flags $arg"
	  ;;
	--version)
	  flags="$flags --modversion"
	  ;;
	--thread=pthread)
	  ;;
	--prefix)
	  flags="$flags --variable=prefix"
	  ;;
	*)
	  echo "Unknown flag: $arg" >&2
	  exit 1
	  ;;
  esac
done

exec pkg-config gpgme $flags