lib32/lib32-libgpg-error/PKGBUILD
2016-12-21 20:59:02 +01:00

37 lines
900 B
Bash

_pkgbasename=libgpg-error
pkgname=lib32-$_pkgbasename
pkgver=1.25
pkgrel=1
pkgdesc="Support library for libgcrypt (32-bit)"
arch=(x86_64)
url="http://www.gnupg.org"
license=('LGPL')
depends=('lib32-glibc' $_pkgbasename=$pkgver)
makedepends=('gcc' 'lib32-gcc-libs')
source=(ftp://ftp.gnupg.org/gcrypt/libgpg-error/${_pkgbasename}-${pkgver}.tar.bz2{,.sig})
sha1sums=('8ab7494e40f80f4138edc9516981bf4afe7d9dbf'
'SKIP')
validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}"/${_pkgbasename}-${pkgver}
./configure --prefix=/usr --libdir=/usr/lib32
make
}
check() {
cd "${srcdir}"/${_pkgbasename}-${pkgver}
make clean
}
package() {
cd "${srcdir}"/${_pkgbasename}-${pkgver}
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}