[arch-commits] Commit in lensfun/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Feb 23 07:37:13 UTC 2022
Date: Wednesday, February 23, 2022 @ 07:37:13
Author: arojas
Revision: 437988
Downgrade to 0.3.3
Modified:
lensfun/trunk/PKGBUILD
----------+
PKGBUILD | 38 +++++++++++++++-----------------------
1 file changed, 15 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-23 06:10:35 UTC (rev 437987)
+++ PKGBUILD 2022-02-23 07:37:13 UTC (rev 437988)
@@ -1,34 +1,26 @@
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
pkgname=lensfun
-pkgver=0.3.95
-pkgrel=6
-pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
+pkgver=0.3.3
+pkgrel=1
+epoch=1
+pkgdesc='Database of photographic lenses and a library that allows advanced access to the database'
arch=(x86_64)
-url="https://lensfun.github.io/"
-license=('LGPL3')
-depends=('glib2')
-makedepends=('python' 'libpng' 'doxygen' 'cmake')
+url='https://lensfun.github.io/'
+license=(LGPL3)
+depends=(glib2)
+makedepends=(python libpng doxygen cmake)
optdepends=('python: for lensfun-update-data and lensfun-add-adapter')
-source=("https://sourceforge.net/projects/lensfun/files/${pkgver}/${pkgname}-${pkgver}.tar.gz"
- lensfun-segfault.patch)
-sha256sums=('82c29c833c1604c48ca3ab8a35e86b7189b8effac1b1476095c0529afb702808'
- '090804382c134b813693770383d21289a74f2b7e221127f2634abf3d24b003da')
+source=(https://github.com/lensfun/lensfun/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('57ba5a0377f24948972339e18be946af12eda22b7c707eb0ddd26586370f6765')
-prepare() {
- cd $pkgname-$pkgver
- patch -p1 -i ../lensfun-segfault.patch # Fix null pointer dereference # https://github.com/lensfun/lensfun/issues/1132
-}
-
build() {
- cd $pkgname-$pkgver
- cmake . \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fno-delete-null-pointer-checks"
- make all
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS -fno-delete-null-pointer-checks"
+ cmake --build build
}
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}
More information about the arch-commits
mailing list