aboutsummaryrefslogtreecommitdiffstats
path: root/community/lensfun/APKBUILD
blob: 1ac5d3bdafcbc1fdc3aa2b58f9b49ebd790f1f6c (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
38
39
40
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=lensfun
pkgver=0.3.2
pkgrel=0
pkgdesc="Image manipulation library to rectify lens defects."
url="http://lensfun.sourceforge.net/"
arch="all"
license="LGPL3"
depends=""
depends_dev=""
makedepends="py-docutils cmake doxygen libpng glib-dev"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
builddir=${srcdir}/${pkgname}-${pkgver}

build() {
	cd "$builddir"
	local opts=
	case "$CARCH" in
	arm*) opts="-DBUILD_FOR_SSE=OFF -DBUILD_FOR_SSE2=OFF";;
	esac
        cmake \
        	-DCMAKE_BUILD_TYPE=Release \
			-DCMAKE_INSTALL_PREFIX=/usr \
			-DCMAKE_INSTALL_LIBDIR=lib \
	   $opts \
	   || return 1
        make all || return 1
}

package() {
	cd "$builddir"
      make DESTDIR="$pkgdir" install
     }

md5sums="247e59a0812ec451f6cd0d20b3379cb5  lensfun-0.3.2.tar.gz"
sha256sums="ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331  lensfun-0.3.2.tar.gz"
sha512sums="9c6f546fa70e6dc692e66ef378447345be6d3383812934780d326d772d775c1918cbf3447cd91c067655044cf659025763bf47ba2d938a82a3c2de4d60127446  lensfun-0.3.2.tar.gz"