diff options
author | Ilya Basin | 2018-03-23 13:35:19 +0300 |
---|---|---|
committer | Ilya Basin | 2018-03-23 13:35:43 +0300 |
commit | 52ba56e13779236b13d2356c239b261533496b88 (patch) | |
tree | 5e986b156c7ad3bc9e47f70c77720fe79c78adfd /PKGBUILD | |
download | aur-52ba56e13779236b13d2356c239b261533496b88.tar.gz |
root
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..38a28ccc393a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# $Id$ +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Judd Vinet <jvinet@zeroflux.org> + +_target=aarch64-linux-gnu +_pkgname=pkg-config +pkgname=${_target}-pkg-config +pkgver=0.29.2 +pkgrel=1 +pkgdesc="pkg-config that only looks in /usr/${_target}/lib/pkgconfig and not in /usr/lib/pkgconfig" +arch=('x86_64') +url="http://pkgconfig.freedesktop.org/wiki/" +license=('GPL') +depends=('glib2') +source=(https://pkgconfig.freedesktop.org/releases/${_pkgname}-${pkgver}.tar.gz{,.asc}) +md5sums=('f6e931e319531b736fadc017f470e68a' + 'SKIP') +validpgpkeys=('6B99CE97F17F48C27F722D71023A4420C7EC6914') # Dan Nicholson + +build() { + cd $_pkgname-$pkgver + ./configure \ + --prefix=/usr/${_target} \ + --target=${_target} \ + --build=$CHOST + make +} + +check() { + cd $_pkgname-$pkgver + make check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir/usr/bin/" + mv "$pkgdir/usr/${_target}/bin/${CHOST}-pkg-config" "$pkgdir/usr/bin/${_target}-pkg-config" +} |