Skip to content

Instantly share code, notes, and snippets.

@alfredopalhares
Forked from johnhowe/PKGBUILD
Created August 26, 2013 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredopalhares/6340824 to your computer and use it in GitHub Desktop.
Save alfredopalhares/6340824 to your computer and use it in GitHub Desktop.
# $Id$
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
_pkgbase=xerces-c
pkgname=lib32-${_pkgbase}
pkgver=3.1.1
pkgrel=4
pkgdesc="A validating XML parser written in a portable subset of C++"
arch=('x86_64')
url="http://xerces.apache.org/xerces-c/"
license=('APACHE')
depends=('lib32-gcc-libs' 'curl')
options=('!libtool')
groups=('lib32')
source=("http://apache.osuosl.org/xerces/c/3/sources/${pkgname}-${pkgver}.tar.gz")
md5sums=('6a8ec45d83c8cfb1584c5a5345cb51ae')
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
build() {
cd ${pkgname}-${pkgver}
[[ "${CARCH}" = "x86_64" ]] && SSE2="--disable-sse2"
./configure --prefix=/usr --host=i686-unknown-linux-gnu --prefix=/usr --libdir=/usr/lib32 \
--sysconfdir=/etc ${SSE2}
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment