# Maintainer: Rodrigo Bezerra # Contributor: orumin _basename=libraw pkgname=lib32-libraw pkgver=0.19.2 pkgrel=1 pkgdesc="A library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others) (32-bit)" arch=('x86_64') url="https://www.libraw.org/" license=(CDDL LGPL) depends=(lib32-lcms2 lib32-jasper libraw) source=(https://www.libraw.org/data/LibRaw-$pkgver.tar.gz) sha256sums=('400d47969292291d297873a06fb0535ccce70728117463927ddd9452aa849644') build() { cd LibRaw-$pkgver export CC='gcc -m32' export CXX='g++ -m32' export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' ./configure \ --build=i686-pc-linux-gnu \ --prefix=/usr \ --libdir=/usr/lib32 \ --disable-examples make } package() { cd LibRaw-$pkgver make DESTDIR="$pkgdir" install rm -rf "${pkgdir}/usr/include" rm -rf "${pkgdir}/usr/share" }