[arch-commits] Commit in libpano13/trunk (PKGBUILD)

2022-01-22 Thread Bruno Pagani via arch-commits
Date: Saturday, January 22, 2022 @ 22:22:28
  Author: archange
Revision: 1113494

upgpkg: libpano13 2.9.21-1

Modified:
  libpano13/trunk/PKGBUILD

--+
 PKGBUILD |   26 --
 1 file changed, 12 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-01-22 22:13:19 UTC (rev 1113493)
+++ PKGBUILD2022-01-22 22:22:28 UTC (rev 1113494)
@@ -3,29 +3,27 @@
 # Contributor: Tobias Kieslich 
 
 pkgname=libpano13
-pkgver=2.9.20
+pkgver=2.9.21
 pkgrel=1
 pkgdesc="Basic library to calculate panoramical pictures - core functions of 
the panotools"
 arch=(x86_64)
 url="http://panotools.sourceforge.net/";
 license=(GPL2)
-depends=(libpng libtiff)
+depends=(libjpeg libpng libtiff suitesparse)
+makedepends=(cmake)
 
source=(https://downloads.sourceforge.net/sourceforge/panotools/${pkgname}-${pkgver}.tar.gz)
-sha256sums=(3b532836c37b8cd75cd2227fd9207f7aca3fdcbbd1cce3b9749f056a10229b89)
+sha256sums=('79e5a1452199305e2961462720ef5941152779c127c5b96fc340d2492e633590')
 
-prepare() {
-  cd ${pkgname}-${pkgver}
-  autoreconf -fvi
-}
-
 build() {
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr --mandir=/usr/share/man
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  cmake -B build -S ${pkgname}-${pkgver} \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DUSE_SPARSE_LEVMAR=ON
+  make -C build
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
+  make -C build DESTDIR="${pkgdir}" install
+  mkdir "${pkgdir}"/usr/share/doc
+  mv "${pkgdir}"/usr/share/{pano13/doc,doc/pano13}
+  rmdir "${pkgdir}"/usr/share/pano13
 }



[arch-commits] Commit in libpano13/trunk (PKGBUILD)

2021-07-20 Thread Bruno Pagani via arch-commits
Date: Tuesday, July 20, 2021 @ 14:55:37
  Author: archange
Revision: 980169

upgpkg: libpano13 2.9.20-1

Fix uneeded linking as well

Modified:
  libpano13/trunk/PKGBUILD

--+
 PKGBUILD |   29 -
 1 file changed, 16 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-07-20 14:55:37 UTC (rev 980168)
+++ PKGBUILD2021-07-20 14:55:37 UTC (rev 980169)
@@ -1,22 +1,27 @@
+# Maintainer: Bruno Pagani 
 # Contributor: Gaetan Bisson 
 # Contributor: Tobias Kieslich 
 
 pkgname=libpano13
-pkgver=2.9.19
-pkgrel=5
-pkgdesc='Basic library to calculate panoramical pictures - core functions of 
the panotools'
-url='http://panotools.sourceforge.net/'
-arch=('x86_64')
-license=('GPL2')
-depends=('libpng' 'libtiff')
+pkgver=2.9.20
+pkgrel=1
+pkgdesc="Basic library to calculate panoramical pictures - core functions of 
the panotools"
+arch=(x86_64)
+url="http://panotools.sourceforge.net/";
+license=(GPL2)
+depends=(libpng libtiff)
 
source=(https://downloads.sourceforge.net/sourceforge/panotools/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('f9f147426d44d8babac09cb1a1b5111f88b9c2fc079f33df80133492bcf24cbd1edd771e6bec7bed4b0256bf15c700139c0a83119d3adf296ae5c567e006d868')
+sha256sums=(3b532836c37b8cd75cd2227fd9207f7aca3fdcbbd1cce3b9749f056a10229b89)
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  autoreconf -fvi
+}
+
 build() {
   cd ${pkgname}-${pkgver}
-  ./configure \
---prefix=/usr \
---mandir=/usr/share/man
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
@@ -24,5 +29,3 @@
   cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
 }
-
-# vim: ts=2 sw=2 et: