PKGBUILDs/extra/libraw/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2016-05-30 17:43:15 +00:00
# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch for signed char on ARM
pkgname=libraw
pkgver=0.17.2
pkgrel=1
pkgdesc="A library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)"
arch=('i686' 'x86_64')
url="http://www.libraw.org/"
license=(CDDL LGPL custom)
depends=(lcms2 jasper)
source=("http://www.libraw.org/data/LibRaw-${pkgver}.tar.gz" libraw-gcc6.patch
'arm.patch')
sha256sums=('92b0c42c7666eca9307e5e1f97d6fefc196cf0b7ee089e22880259a76fafd15c'
'317af364c48fd346eef0b116264a8c048aed923e2d850c0f2dd2d30a34b3771a'
'2aeaeb18d9e6305da84d792b5f81a533d57b3d394c925eb2c6d780fa9d637daf')
prepare() {
cd LibRaw-$pkgver
# Fix build with GCC 6 (Fedora)
patch -p0 -i ../libraw-gcc6.patch
# Fix build on ARM
patch -p1 -i ../arm.patch
}
build() {
cd LibRaw-$pkgver
./configure --prefix=/usr \
--disable-examples
make
}
package() {
cd LibRaw-$pkgver
make DESTDIR="$pkgdir" install
install -d "$pkgdir"/usr/share/licenses/$pkgname
install -D -m644 "$srcdir"/LibRaw-$pkgver/LICENSE.LibRaw.pdf \
"$pkgdir"/usr/share/licenses/$pkgname
}