mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=libgpg-error
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.7
|
|
pkgrel=1
|
|
pkgdesc="Support library for libgcrypt (32-bit)"
|
|
arch=(x86_64)
|
|
url="http://www.gnupg.org"
|
|
license=('LGPL')
|
|
depends=('lib32-glibc' $_pkgbasename)
|
|
makedepends=(gcc-multilib)
|
|
options=(!libtool)
|
|
source=(ftp://ftp.gnupg.org/gcrypt/libgpg-error/${_pkgbasename}-${pkgver}.tar.bz2)
|
|
#ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('62c0d09d1e76c5b6da8fff92314c4665')
|
|
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/${_pkgbasename}-${pkgver}
|
|
make DESTDIR="${pkgdir}/" install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
}
|