blob: 5aa7e8b908ed257d0b073d7153c782bac3747938 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>
pkgname=nufraw
pkgver=0.43_3
_pkgver=0.43-3
pkgrel=1
pkgdesc='A new version of the popular raw digital images manipulator ufraw.'
arch=('i686' 'x86_64')
url='https://sourceforge.net/projects/nufraw'
license=('GPL')
provides=('gimp-nufraw')
conflicts=('gimp-nufraw')
depends=('gtkimageview' 'exiv2' 'lcms2' 'desktop-file-utils' 'cfitsio' 'lensfun')
makedepends=('gimp')
optdepends=('gimp: to use the gimp import plugin for raw images')
source=(
https://downloads.sourceforge.net/project/$pkgname/$pkgname-$_pkgver.tar.gz
nufraw-glib-2.70.patch
exiv2-error.patch
nufraw.desktop
)
noextract=($pkgname-$_pkgver.tar.gz)
sha512sums=('60a6d764ca0248f8c388f4b16ff67cded954f642515bb706d1d45bdab189d159593c93f29ec83bbe6cbe4597d6f229a1839f32a450d5ee1d73a135a825933ec8'
'dbf80fa7e87a6b424b9a79f8a10a4a5bed39e074cd8e74a540f40e05fa77605bd5801b648cab0d69c70f31aededb92ea2b11a593a810e66aad3a90b7898720dc'
'a6a902e3979deca594e25fccfea7787da443e9f8e9dc2e22ea175992161b01ee5054a860c963f268e49bb379b613172e5a7f2eadb38eb5b9279a80dbc7c406f5'
'd906c384fe19ebda8e0e8a9207b193f2ca20fa5ef13ba70f6ecf4019babea6f20dbf3249bb766dd21db450db04bd6a41a8bbccb168ddb3a419cc6c27cd627688')
prepare(){
cd "$srcdir"
tar zxf $pkgname-$_pkgver.tar.gz \
--exclude doc-pak --exclude=.git
cd "$pkgname-$_pkgver"
patch < ../nufraw-glib-2.70.patch
patch < ../exiv2-error.patch
chmod +x mkinstalldirs generate_schemas.sh
mv nufraw.desktop.desktop nufraw.desktop
# msg2 "Fixing dcraw.cc: error: call of overloaded ‘abs(unsigned int&)’ is ambiguous"
# sed '9361s/abs/ABS/g' -i dcraw.cc
}
build(){
cd "$srcdir"/$pkgname-$_pkgver
msg2 "Running autogen"
./autogen.sh
msg2 "Running configure"
local configure=(
--prefix=/usr
--enable-contrast
--enable-mime
--enable-extras
--enable-dst-correction
--enable-openmp
--with-gimp
# --with-cinepaint # WARNING: unrecognized options: --with-cinepaint
)
./configure ${configure[*]}
msg2 "Running make"
make
}
package(){
cd "$srcdir"/$pkgname-$_pkgver
msg2 "Running make install"
make DESTDIR="$pkgdir/" install
rm -f "$pkgdir/usr/bin/dcraw" # provided by dcraw
rm -f "$pkgdir/usr/bin/nikon-curve" # provided by gimp-ufraw
install -Dm644 "$srcdir/nufraw.desktop" "$pkgdir/usr/share/applications/nufraw.desktop"
install -Dm644 nufraw-mime.xml "$pkgdir/usr/share/mime/packages/nufraw-mime.xml"
}
|