3.5.2-2 refactored config directory settings
This commit is contained in:
parent
ea0d368dd7
commit
34dc33b398
3 changed files with 21 additions and 14 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = sumatrapdf
|
pkgbase = sumatrapdf
|
||||||
pkgdesc = PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free.
|
pkgdesc = PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free.
|
||||||
pkgver = 3.5.2
|
pkgver = 3.5.2
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://www.sumatrapdfreader.org/free-pdf-reader
|
url = https://www.sumatrapdfreader.org/free-pdf-reader
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL3
|
license = GPL3
|
||||||
|
@ -18,6 +18,6 @@ pkgbase = sumatrapdf
|
||||||
source = sumatrapdf.sh
|
source = sumatrapdf.sh
|
||||||
sha256sums = 66ccb395c9184dce6822dfbb9970c877383b3ead6d9417b5106a844aac512989
|
sha256sums = 66ccb395c9184dce6822dfbb9970c877383b3ead6d9417b5106a844aac512989
|
||||||
sha256sums = ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27
|
sha256sums = ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27
|
||||||
sha256sums = 9113c6a594fe9b2f2dc800345396c97c3516d42d40bbc1ace6b34d805c0a3d7b
|
sha256sums = 8cc7cff62ca0f4b149cff9ad5f383a38fa68627d1b80a5f5e631860ca95cd56c
|
||||||
|
|
||||||
pkgname = sumatrapdf
|
pkgname = sumatrapdf
|
||||||
|
|
14
PKGBUILD
14
PKGBUILD
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=sumatrapdf
|
pkgname=sumatrapdf
|
||||||
pkgver=3.5.2
|
pkgver=3.5.2
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free."
|
pkgdesc="PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://www.sumatrapdfreader.org/free-pdf-reader'
|
url='https://www.sumatrapdfreader.org/free-pdf-reader'
|
||||||
|
@ -16,7 +16,7 @@ source=('https://www.sumatrapdfreader.org/dl/rel/3.5.2/SumatraPDF-3.5.2-64.zip'
|
||||||
'sumatrapdf.sh')
|
'sumatrapdf.sh')
|
||||||
sha256sums=('66ccb395c9184dce6822dfbb9970c877383b3ead6d9417b5106a844aac512989'
|
sha256sums=('66ccb395c9184dce6822dfbb9970c877383b3ead6d9417b5106a844aac512989'
|
||||||
'ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27'
|
'ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27'
|
||||||
'9113c6a594fe9b2f2dc800345396c97c3516d42d40bbc1ace6b34d805c0a3d7b')
|
'8cc7cff62ca0f4b149cff9ad5f383a38fa68627d1b80a5f5e631860ca95cd56c')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
wrestool -x -t 14 "SumatraPDF-${pkgver}-64.exe" > "${pkgname}.ico"
|
wrestool -x -t 14 "SumatraPDF-${pkgver}-64.exe" > "${pkgname}.ico"
|
||||||
|
@ -39,3 +39,13 @@ package() {
|
||||||
|
|
||||||
echo "You may need MS fonts for non-latin characters."
|
echo "You may need MS fonts for non-latin characters."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# CHANGELOG
|
||||||
|
#
|
||||||
|
# 3.5.2-2
|
||||||
|
# - use `-appdata` cmd option of SumatraPDF.exe to specify config directory
|
||||||
|
# - all old settings works fine
|
||||||
|
# - remove symlink in config directory to sumatrapdf.sh
|
||||||
|
# - you can remove it
|
||||||
|
# - change WINEPREFIX to config directory
|
||||||
|
# - you can delete ~/.sumatrapdf/
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/sumatrapdf"
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/sumatrapdf"
|
||||||
export WINEPREFIX="$HOME"/.sumatrapdf/wine
|
# use this directory to store wine environment
|
||||||
if [ ! -d "$HOME"/.sumatrapdf ] ; then
|
export WINEPREFIX="$CONFIG_DIR"/wine
|
||||||
mkdir -p "$HOME"/.sumatrapdf/wine
|
# initialize custom wine environment
|
||||||
wineboot -u
|
|
||||||
fi
|
|
||||||
if [ ! -d $CONFIG_DIR ] ; then
|
if [ ! -d $CONFIG_DIR ] ; then
|
||||||
mkdir -p $CONFIG_DIR
|
mkdir -p $CONFIG_DIR
|
||||||
|
mkdir -p "$CONFIG_DIR"/wine
|
||||||
# SumatraPDF makes settings file in the same directory as SumatraPDF.exe
|
wineboot -u
|
||||||
ln -s /usr/share/sumatrapdf/sumatrapdf.exe "$CONFIG_DIR"/sumatrapdf.exe
|
|
||||||
fi
|
fi
|
||||||
# WINEDEBUG=-all wine /usr/share/sumatrapdf/sumatrapdf.exe "$@"
|
|
||||||
WINEDEBUG=-all wine "$CONFIG_DIR"/sumatrapdf.exe "$@"
|
WINEDEBUG=-all wine /usr/share/sumatrapdf/sumatrapdf.exe -appdata "$CONFIG_DIR" "$@"
|
||||||
|
|
Loading…
Reference in a new issue