PKGBUILDs/community/gimp-nufraw/PKGBUILD

57 lines
1.4 KiB
Bash
Raw Normal View History

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
2022-02-28 20:51:49 +00:00
pkgrel=3
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"
2022-02-28 22:35:57 +00:00
nufraw-glib-2.70.patch
signed-char.patch)
2022-02-28 20:51:49 +00:00
sha256sums=('2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c'
2022-02-28 22:35:57 +00:00
'0e422f77b277f3c38b454426ee155d1004e47ced8d5d05942448584557c9ed07'
'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
2022-02-28 20:51:49 +00:00
patch -p1 < ../nufraw-glib-2.70.patch # Fix build with glib 2.70
2022-02-28 22:35:57 +00:00
patch -p1 < ../signed-char.patch
2022-02-28 20:51:49 +00:00
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 \
--prefix=/usr \
--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"
}