Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream': libx32-libgcrypt 1.6.2-1.1
- Loading branch information
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
community.svn/pristine/f3/f373d46462042a746e83e5bcf4cd5db255b9bd37.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# $Id$ | ||
# Maintainer: Andreas Radke <andyrtr@archlinux.org> | ||
|
||
_pkgbasename=libgcrypt | ||
pkgname=lib32-$_pkgbasename | ||
pkgver=1.6.2 | ||
pkgrel=1 | ||
pkgdesc="General purpose cryptographic library based on the code from GnuPG (32-bit)" | ||
arch=(x86_64) | ||
url="http://www.gnupg.org" | ||
license=('LGPL') | ||
depends=('lib32-libgpg-error>=1.10-2' $_pkgbasename) | ||
makedepends=(gcc-multilib libtool-multilib) | ||
source=(ftp://ftp.gnupg.org/gcrypt/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2) | ||
sha1sums=('cc31aca87e4a3769cb86884a3f5982b2cc8eb7ec') | ||
|
||
build() { | ||
export CC="gcc -m32" | ||
export CXX="g++ -m32" | ||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" | ||
|
||
cd ${_pkgbasename}-${pkgver} | ||
|
||
# Use 32-bit assembler | ||
sed 's:path="amd64":path="i586 i386":' -i mpi/config.links | ||
|
||
./configure --prefix=/usr --disable-static --disable-padlock-support \ | ||
--libdir=/usr/lib32 --enable-shared | ||
make | ||
} | ||
|
||
package() { | ||
cd ${_pkgbasename}-${pkgver} | ||
|
||
make DESTDIR=${pkgdir} install | ||
rm -rf "${pkgdir}"/usr/{include,share,bin,sbin} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters