mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/gmic to 2.0.0-1
This commit is contained in:
parent
7ea2a1e7ae
commit
1979c55f0a
1 changed files with 17 additions and 11 deletions
|
@ -11,17 +11,21 @@ highmem=1
|
||||||
|
|
||||||
pkgbase=gmic
|
pkgbase=gmic
|
||||||
pkgname=("gmic" "gimp-plugin-gmic" "zart")
|
pkgname=("gmic" "gimp-plugin-gmic" "zart")
|
||||||
pkgver=1.7.9
|
pkgver=2.0.0
|
||||||
_commit=7c19f43888c714d18a13616ff805d246289f4786
|
_commit=440f068f665597aa10d8e01cc8b73cafdf0e4479
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
arch=("i686" "x86_64")
|
arch=("i686" "x86_64")
|
||||||
url="http://gmic.eu/"
|
url="http://gmic.eu/"
|
||||||
license=("custom:CeCILL")
|
license=("custom:CeCILL")
|
||||||
makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2' 'git')
|
makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2' 'git')
|
||||||
source=("https://gmic.eu/files/source/gmic_$pkgver.tar.gz"
|
source=("https://gmic.eu/files/source/gmic_$pkgver.tar.gz"
|
||||||
"git://github.com/dtschump/gmic-community.git#commit=${_commit}")
|
"git://github.com/dtschump/gmic-community.git#commit=${_commit}"
|
||||||
sha256sums=('152f100eb139a5f6e5b3d1e43aaed34f2b3786f72f52724ebde5e5ccea2c7133'
|
"gmic_stdlib.h-$pkgver::http://gmic.eu/gmic_stdlib.h"
|
||||||
'SKIP')
|
"CImg.h-$pkgver::https://github.com/dtschump/CImg/blob/master/CImg.h?raw=true")
|
||||||
|
sha256sums=('27c57f0ca630895a0dab5c0eff854f3133a29743267c4aa196dc2d1936463ca4'
|
||||||
|
'SKIP'
|
||||||
|
'5557eba6da03e8c1df2bb2f36644577245540b247e71b130b6aa03c45c87b8d9'
|
||||||
|
'27d35b0c402897e270f74cbca7b90541cfe860b308b868f96b06fa372fdbd6be')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mv "${srcdir}/gmic-${pkgver}" "${srcdir}/gmic"
|
mv "${srcdir}/gmic-${pkgver}" "${srcdir}/gmic"
|
||||||
|
@ -31,19 +35,22 @@ prepare() {
|
||||||
src/Makefile
|
src/Makefile
|
||||||
ln -sf ../gmic-community/zart zart
|
ln -sf ../gmic-community/zart zart
|
||||||
sed -i "s|-mtune=generic|${CFLAGS}|" src/Makefile
|
sed -i "s|-mtune=generic|${CFLAGS}|" src/Makefile
|
||||||
|
|
||||||
|
mkdir -p ../CImg
|
||||||
|
cp -L ../gmic_stdlib.h-$pkgver src/gmic_stdlib.h
|
||||||
|
cp -L ../CImg.h-$pkgver ../CImg/CImg.h
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/gmic"
|
cd "${srcdir}/gmic"
|
||||||
(cd zart && qmake-qt4 -o Makefile zart.pro)
|
(cd zart && qmake-qt4 -o Makefile zart.pro)
|
||||||
make -C src all
|
make -C src all WGET=/bin/true
|
||||||
make -C zart all
|
make -C zart all WGET=/bin/true
|
||||||
}
|
}
|
||||||
|
|
||||||
package_gmic() {
|
package_gmic() {
|
||||||
pkgdesc="GREYC's Magic Image Converter: image processing framework"
|
pkgdesc="GREYC's Magic Image Converter: image processing framework"
|
||||||
depends=("opencv" "fftw" "libtiff" "libjpeg" "libpng" "openexr" "libx11")
|
depends=("opencv" "fftw" "libtiff" "libjpeg" "libpng" "openexr" "libx11")
|
||||||
replaces=("greycstoration")
|
|
||||||
|
|
||||||
cd "${srcdir}/gmic"
|
cd "${srcdir}/gmic"
|
||||||
make -C src install DESTDIR="$pkgdir" USR="/usr"
|
make -C src install DESTDIR="$pkgdir" USR="/usr"
|
||||||
|
@ -63,9 +70,8 @@ package_zart() {
|
||||||
package_gimp-plugin-gmic() {
|
package_gimp-plugin-gmic() {
|
||||||
pkgdesc="Gimp plugin for the G'MIC image processing framework"
|
pkgdesc="Gimp plugin for the G'MIC image processing framework"
|
||||||
depends=("opencv" "gimp" "fftw")
|
depends=("opencv" "gimp" "fftw")
|
||||||
replaces=("gimp-plugin-greycstoration" "gimp-plugin-gmic4gimp")
|
|
||||||
|
|
||||||
cd "${srcdir}/gmic"
|
cd "${srcdir}/gmic"
|
||||||
install -Dm755 src/gmic_gimp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp"
|
install -Dm755 src/gmic_gimp_gtk "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp"
|
||||||
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue