Skip to content

Commit

Permalink
pkg-config wrappers: fail if host pkg-config not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Jun 22, 2020
1 parent 10b36ed commit e780a94
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions 3ds/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=3ds-pkg-config
pkgver=0.28
pkgrel=3
pkgrel=4
pkgdesc='pkg-config wrapper (for Nintendo 3DS homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('96340865b52cc22c21522b6e333633214e8955ebe030fbc61ce5922fcc773c58')
sha256sums=('0478950b8d4b6b08c8cd678237d99563b50752bfc8680d0ce797601c6677fe57')
groups=('3ds-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions 3ds/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down
4 changes: 2 additions & 2 deletions gamecube/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=gamecube-pkg-config
pkgver=0.28
pkgrel=4
pkgrel=5
pkgdesc='pkg-config wrapper (for Nintendo Wii homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('82f725a59ffaf408a5bd0edecfb902767ddc30aab0ba749615157ca5ce11dbda')
sha256sums=('d241fb15ac9f209290cdd44863a217cef13ebdeff1cfe4a146cacfb3e46e260c')
groups=('gamecube-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions gamecube/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down
4 changes: 2 additions & 2 deletions nds/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=nds-pkg-config
pkgver=0.28
pkgrel=3
pkgrel=4
pkgdesc='pkg-config wrapper (for Nintendo DS homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('64995581dff8862f3154ff4daddd362484e5070b193b4dfce83f51a437ead8cc')
sha256sums=('020238b87d79f1d5e25ff08df89b9761a14fbe47b1ea2ec8435472d36ce3d3e7')
groups=('nds-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions nds/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down
4 changes: 2 additions & 2 deletions ppc/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=ppc-pkg-config
pkgver=0.28
pkgrel=4
pkgrel=5
pkgdesc='pkg-config wrapper (for Nintendo Gamecube/Wii homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('cfb11e8bf709be4246c0637b2de45420515633f7551cf63e1841de5833c6cbab')
sha256sums=('e435edc486112e1bdb0c96061760bd8bc62b99b2a3f3ce59d819f39e734f9bd3')
groups=('ppc-dev' 'gamecube-dev' 'wii-dev' 'wiiu-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions ppc/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down
4 changes: 2 additions & 2 deletions switch/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=switch-pkg-config
pkgver=0.28
pkgrel=3
pkgrel=4
pkgdesc='pkg-config wrapper (for Nintendo Switch homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('24bda6f71145d13aaddd472b0db628e2dc5b6f7a6f8df60d7f09a21fc019a1a5')
sha256sums=('7669a9c9c6b739a63d08d631cb252e91b4180f5644e1ed482bf80d1a6e8570fe')
groups=('switch-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions switch/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down
4 changes: 2 additions & 2 deletions wii/pkg-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=wii-pkg-config
pkgver=0.28
pkgrel=4
pkgrel=5
pkgdesc='pkg-config wrapper (for Nintendo Wii homebrew development)'
arch=('any')
url='http://devkitpro.org/'
source=('pkg-config.in')
sha256sums=('b5edfac524b4f19760ee7cb47e3d60fd9a73beab7bfc647e8287761f34230d0e')
sha256sums=('7249d1313cc83a9997dc948e54831409857d2bccc461a4f20f9bc3eb840d2fc0')
groups=('wii-dev')

package() {
Expand Down
2 changes: 2 additions & 0 deletions wii/pkg-config/pkg-config.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

command -v pkg-config >/dev/null 2>&1 || { echo >&2 "I require pkg-config but it's not installed. Aborting."; exit 1; }

# reset pkg-config variables to ensure we're not polluted by host libraries

export PKG_CONFIG_DIR=
Expand Down

0 comments on commit e780a94

Please sign in to comment.