Skip to content

Commit aa4975d

Browse files
peterbudAlexpux
authored andcommitted
lensfun 0.3.2: Fix absoluta path problem in lensfun-update-data (msys2#2843)
1 parent 30aff09 commit aa4975d

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

mingw-w64-lensfun/PKGBUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _realname=lensfun
44
pkgbase=mingw-w64-${_realname}
55
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
66
pkgver=0.3.2
7-
pkgrel=3
7+
pkgrel=4
88
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database (mingw-w64)"
99
arch=('any')
1010
url="https://lensfun.sourceforge.io"
@@ -19,13 +19,16 @@ depends=("${MINGW_PACKAGE_PREFIX}-glib2"
1919
"${MINGW_PACKAGE_PREFIX}-zlib")
2020
options=('staticlibs' 'strip')
2121
source=(https://sourceforge.net/projects/lensfun/files/${pkgver}/${_realname}-${pkgver}.tar.gz
22+
lensfun-update-data.patch
2223
cmake-mingw.patch)
2324
sha256sums=('ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331'
25+
'337a784c9d04d1a6a3da366d92df1621012ef00e486d38d87659b33c46ae0912'
2426
'b1f6f14af5d06fbe27b6364fb2452a8c6585724b68ecd3d3844e040d5a650e78')
2527

2628
prepare(){
2729
cd "${srcdir}/${_realname}-${pkgver}"
2830
patch -p1 -i "${srcdir}/cmake-mingw.patch"
31+
patch -p1 -i "${srcdir}/lensfun-update-data.patch"
2932
}
3033

3134
build() {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- lensfun-0.3.2/apps/lensfun-update-data.orig 2015-11-15 18:07:26.000000000 +0100
2+
+++ lensfun-0.3.2/apps/lensfun-update-data 2017-09-03 15:46:53.005426300 +0200
3+
@@ -48,7 +48,8 @@
4+
5+
database_version = lensfun.get_database_version()
6+
7+
-lensfun_updates_dir = "/var/lib/lensfun-updates"
8+
+lensfun_updates_dir = os.path.join(sys.prefix, "var", "lib", "lensfun-updates")
9+
+
10+
if os.name == "posix" and os.geteuid() != 0:
11+
lensfun_updates_dir = os.path.join(os.path.expanduser("~"),
12+
".local", "share", "lensfun", "updates")

0 commit comments

Comments
 (0)