2018-05-11 12:44:41 +00:00
|
|
|
# Maintainer: Christian Hesse <mail@eworm.de>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2022-02-28 22:35:57 +00:00
|
|
|
# - patch to fix signed char declaration for ARM
|
2018-05-11 12:44:41 +00:00
|
|
|
|
|
|
|
pkgname=gimp-nufraw
|
2020-03-21 19:58:46 +00:00
|
|
|
_realver=0.43-3
|
|
|
|
pkgver=0.43.3
|
2024-06-06 13:45:43 +00:00
|
|
|
pkgrel=10
|
2018-05-11 12:44:41 +00:00
|
|
|
pkgdesc='Converter for raw files; utility and GIMP plugin'
|
|
|
|
url='https://sourceforge.net/projects/nufraw/'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL')
|
2018-09-17 12:34:32 +00:00
|
|
|
depends=('cfitsio' 'exiv2' 'gtkimageview' 'lcms2' 'lensfun' 'libjpeg-turbo')
|
2018-05-11 12:44:41 +00:00
|
|
|
makedepends=('gimp')
|
|
|
|
conflicts=('gimp-ufraw')
|
|
|
|
replaces=('gimp-ufraw')
|
|
|
|
optdepends=('gimp: to use the gimp import plugin for raw images')
|
2022-02-28 20:51:49 +00:00
|
|
|
source=("https://downloads.sourceforge.net/nufraw/nufraw-${_realver}.tar.gz"
|
2023-06-21 12:37:12 +00:00
|
|
|
'0001-nufraw-glib-2.70.patch'
|
|
|
|
'0002-exiv2-error.patch'
|
2022-02-28 22:35:57 +00:00
|
|
|
signed-char.patch)
|
2022-02-28 20:51:49 +00:00
|
|
|
sha256sums=('2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c'
|
2023-06-21 12:37:12 +00:00
|
|
|
'042aa55a757c4ed1198fe4628c87933f958d768c2cd5270db1b2e4369daaf090'
|
|
|
|
'01fd29b180662da1a1510236bc64fac614229adaf1bc7b11df8b88745d6458da'
|
2022-02-28 22:35:57 +00:00
|
|
|
'93b20b1b6634de7b56a6b50fe35f320dbf68e9dc7b530c5540a88637a14d3fa0')
|
2018-05-11 12:44:41 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-03-21 19:58:46 +00:00
|
|
|
cd "nufraw-${_realver}"
|
2018-05-11 12:44:41 +00:00
|
|
|
|
2023-06-21 12:37:12 +00:00
|
|
|
# fix build with glib 2.70
|
|
|
|
patch -p1 < ../0001-nufraw-glib-2.70.patch
|
|
|
|
|
|
|
|
# fix build with exiv2 0.28.0
|
|
|
|
patch -p1 < ../0002-exiv2-error.patch
|
|
|
|
|
2022-02-28 22:35:57 +00:00
|
|
|
patch -p1 < ../signed-char.patch
|
2022-02-28 20:51:49 +00:00
|
|
|
|
2024-06-06 13:45:43 +00:00
|
|
|
# fix metadata path with appstream
|
|
|
|
sed -i '/appdatadir/s|/appdata|/metainfo/|' Makefile.am
|
|
|
|
|
2018-05-11 12:44:41 +00:00
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
mv nufraw.desktop{.desktop,}
|
|
|
|
chmod +x generate_schemas.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-03-21 19:58:46 +00:00
|
|
|
cd "nufraw-${_realver}"
|
2018-05-11 12:44:41 +00:00
|
|
|
|
|
|
|
./configure \
|
2024-06-06 13:45:43 +00:00
|
|
|
--prefix='/usr' \
|
2018-05-11 12:44:41 +00:00
|
|
|
--enable-extras \
|
|
|
|
--enable-mime \
|
|
|
|
--enable-openmp \
|
|
|
|
--with-gimp \
|
|
|
|
--with-cinepaint \
|
|
|
|
--enable-contrast
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-21 19:58:46 +00:00
|
|
|
make -C "nufraw-${_realver}" DESTDIR="$pkgdir" install
|
2018-05-11 12:44:41 +00:00
|
|
|
rm -f "$pkgdir/usr/bin/dcraw"
|
|
|
|
}
|