Package Details: gimp-plugin-image-reg 0.5.5-2

Git Clone URL: https://aur.archlinux.org/gimp-plugin-image-reg.git (read-only, click to copy)
Package Base: gimp-plugin-image-reg
Description: Image registration plugin for the GIMP
Upstream URL: http://registry.gimp.org/node/24248
Licenses: GPL3
Submitter: vah
Maintainer: None
Last Packager: maandree
Votes: 5
Popularity: 0.040692
First Submitted: 2011-07-23 14:58 (UTC)
Last Updated: 2017-01-26 12:50 (UTC)

Latest Comments

qubidt commented on 2021-12-10 04:25 (UTC)

seems like upstream did some slightly unconventional things with the packaging, so I'm not sure I got it 100%, but I updated this package for v2.0.1:

From be79b2243a9efdb13c67972f3b21e1c67767fed0 Mon Sep 17 00:00:00 2001
From: Bao Trinh <qubidt@gmail.com>
Date: Thu, 9 Dec 2021 17:22:07 -0600
Subject: [PATCH] update package version to 2.0.1

---
 .SRCINFO | 15 +++++++--------
 PKGBUILD | 40 +++++++++++++++++++++++++++-------------
 2 files changed, 34 insertions(+), 21 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 5787371..f94665f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,17 @@
-# Generated by mksrcinfo v8
-# Thu Jan 26 12:49:56 UTC 2017
 pkgbase = gimp-plugin-image-reg
    pkgdesc = Image registration plugin for the GIMP
-   pkgver = 0.5.5
-   pkgrel = 2
-   url = http://registry.gimp.org/node/24248
+   pkgver = 2.0.1
+   pkgrel = 1
+   url = https://gimp-image-reg.sourceforge.io/
    arch = i686
    arch = x86_64
    license = GPL3
    makedepends = intltool
    makedepends = gettext
+   makedepends = cmake
    depends = gimp
-   source = http://downloads.sourceforge.net/gimp-image-reg/gimp-image-reg-0.5.5.tar.gz
-   md5sums = 405b87140880de18d695173ee6b08981
+   noextract = gimp-image-reg-2.0.1-source.zip
+   source = https://downloads.sourceforge.net/sourceforge/gimp-image-reg/version-2.0.1/gimp-image-reg-2.0.1-source.zip
+   md5sums = 64d1e579c12b45131bf8ebdc54ad19b4

 pkgname = gimp-plugin-image-reg
-
diff --git a/PKGBUILD b/PKGBUILD
index d51d8ba..6882c1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,40 @@
 # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
 pkgname=gimp-plugin-image-reg
 _srcname=gimp-image-reg
-pkgver=0.5.5
-pkgrel=2
+pkgver=2.0.1
+pkgrel=1
 pkgdesc="Image registration plugin for the GIMP"
 arch=('i686' 'x86_64')
-url="http://registry.gimp.org/node/24248"
+url="https://gimp-image-reg.sourceforge.io/"
 license=('GPL3')
 depends=('gimp')
-makedepends=('intltool' 'gettext')
-source=(http://downloads.sourceforge.net/${_srcname}/${_srcname}-${pkgver}.tar.gz)
-md5sums=('405b87140880de18d695173ee6b08981')
+makedepends=('intltool' 'gettext' 'cmake')
+source=("https://downloads.sourceforge.net/sourceforge/${_srcname}/version-${pkgver}/${_srcname}-${pkgver}-source.zip")
+noextract=("${_srcname}-${pkgver}-source.zip")
+md5sums=('64d1e579c12b45131bf8ebdc54ad19b4')
+
+prepare() {
+  unzip "${_srcname}-${pkgver}-source.zip" -d "${_srcname}-${pkgver}"
+}

 build() {
-  cd "$srcdir/${_srcname}-${pkgver}"
-  sed -i 's#^GIMP_PLUGIN_BINDIR=.*$#&\nGIMP_PLUGIN_BINDIR="/usr/lib/gimp/2.0/plug-ins"#' ./configure
-  LIBS='-lm' ./configure --prefix=/usr
-  make
+  cmake \
+      -B "${_srcname}-${pkgver}/build" \
+      -S "${_srcname}-${pkgver}" \
+      -DCMAKE_BUILD_TYPE:STRING='None' \
+      -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+      -Wno-dev
+
+  cd "${_srcname}-${pkgver}"
+  cmake --build build --target install
 }

 package() {
-  cd "$srcdir/${_srcname}-${pkgver}"
-  make DESTDIR="$pkgdir/" PLUGINDIR=/usr/lib/gimp/2.0 install
-}
+  cd "${_srcname}-${pkgver}"
+  install -m755 -d "$pkgdir/usr/lib/gimp/2.0/plug-ins"
+  install -m755 -d "$pkgdir/usr/share/doc/${pkgname}"

+  install -m644 build/install/README.md "$pkgdir/usr/share/doc/${pkgname}/"
+  install -m755 build/install/gimp-image-reg.py "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
+  cp -ra build/install/imreg "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
+}
-- 
2.34.1