updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / lib32-yaml-cpp / PKGBUILD
blob43a2accfa3ba3791577da5414a36e8ef968ec73c
1 #Maintainer: Baptiste Jonglez <zerstorer at free dot fr>
2 pkgname=lib32-yaml-cpp
3 pkgver=0.2.7
4 pkgrel=2
5 pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec (32-bit library)"
6 license=('MIT')
7 arch=('x86_64')
8 url="http://code.google.com/p/yaml-cpp/"
9 makedepends=('cmake' 'gcc-multilib')
10 source=("http://yaml-cpp.googlecode.com/files/yaml-cpp-${pkgver}.tar.gz")
11 md5sums=('6878e14bad90c69a8f2caca273eb24c2')
12 options=('!libtool')
14 build() {
16   export CC="gcc -m32"
17   export CXX="g++ -m32"
18   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
19   
20   cd "${srcdir}/yaml-cpp-${pkgver}"
22   cmake -D CMAKE_INSTALL_PREFIX=/usr \
23     -D LIB_SUFFIX=32 \
24     -D LIB_INSTALL_DIR=/usr/lib32 \
25     .
26   make
30 package () {  
31   cd "${srcdir}/yaml-cpp-${pkgver}"
33   make install DESTDIR="${pkgdir}"
35   rm -rf "${pkgdir}/usr/include"