summaryrefslogtreecommitdiff
path: root/extra/lensfun/PKGBUILD
blob: 39c21112853a69b099d6f18e594e2e733a05e3f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 182923 2013-04-16 07:16:05Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=lensfun
pkgver=0.2.7
pkgrel=1
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
arch=(i686 x86_64 'mips64el')
url="http://lensfun.berlios.de/"
license=('LGPL3')
depends=('glibc' 'glib2')
makedepends=('python2' 'libpng' 'doxygen')
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2")

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    if [ "$CARCH" = "mips64el" ]; then
      confflags="--vectorization="
    else
      confflags=""
    fi
    sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' configure
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure \
        --prefix=/usr \
        --libdir=/usr/lib ${confflags}
    make all
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make INSTALL_PREFIX="$pkgdir" install
}
md5sums=('6061cc2d00a42d3e62512878426fc841')