fix install script for Arch Linux
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
diff --unified --recursive --text python-pymupdf.orig/PKGBUILD python-pymupdf.new/PKGBUILD
|
||||||
|
--- python-pymupdf.orig/PKGBUILD 2021-03-11 19:46:08.778738089 +0100
|
||||||
|
+++ python-pymupdf.new/PKGBUILD 2021-03-11 19:55:19.992557839 +0100
|
||||||
|
@@ -18,6 +18,7 @@
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "${_name}-${pkgver}"
|
||||||
|
+ patch --forward --strip=1 --input="${HOME}/.config/emacs/scripts/fix-pymupdf-library-linking-for-arcolinux.patch"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
@@ -20,15 +20,17 @@
|
|||||||
|
|
||||||
# INTERNAL
|
# INTERNAL
|
||||||
distro=$(lsb_release -is)
|
distro=$(lsb_release -is)
|
||||||
|
if test $distro = "ArcoLinux"; then distro=Arch; fi
|
||||||
# echo $distro
|
# echo $distro
|
||||||
|
|
||||||
|
echo "install"
|
||||||
case $distro in
|
case $distro in
|
||||||
"Arch")
|
Arch)
|
||||||
echo "Arch found"
|
echo "Arch found"
|
||||||
echo "Emacs installation"
|
echo "Emacs installation"
|
||||||
yay -Syu --needed emacs-git \
|
yay -Syu --needed --answerclean y --answerdiff n emacs-git \
|
||||||
yay -S ttf-inconsolata ttf-opensans noto-fonts-cjk \
|
ttf-inconsolata ttf-opensans noto-fonts-cjk \
|
||||||
yay -S aspell aspell-de aspell-en \
|
aspell aspell-de aspell-en \
|
||||||
hunspell hunspell-de hunspell-en_US \
|
hunspell hunspell-de hunspell-en_US \
|
||||||
languagetool \
|
languagetool \
|
||||||
biber bibtex2html texlive-bibtexextra texlive-core \
|
biber bibtex2html texlive-bibtexextra texlive-core \
|
||||||
@@ -43,16 +45,10 @@ case $distro in
|
|||||||
python-feedparser python-dbus python-pyinotify python-markdown \
|
python-feedparser python-dbus python-pyinotify python-markdown \
|
||||||
python-grip filebrowser-bin python-epc mupdf \
|
python-grip filebrowser-bin python-epc mupdf \
|
||||||
ditaa plantuml r
|
ditaa plantuml r
|
||||||
# TODO: python-pymupdf
|
# workaround for python-pymupdf see below
|
||||||
# PGKBUILD with patch
|
|
||||||
# yay --editmenu -S python-pymupdf
|
|
||||||
# prepare() {
|
|
||||||
# cd "${_name}-${pkgver}"
|
|
||||||
# patch --forward --strip=1 --input="${HOME}/.config/emacs/scripts/fix-pymupdf-library-linking-for-arcolinux.patch"
|
|
||||||
# }
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Debian")
|
Debian)
|
||||||
echo "Debian found"
|
echo "Debian found"
|
||||||
echo "Emacs installation"
|
echo "Emacs installation"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@@ -104,12 +100,9 @@ case $distro in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "config"
|
||||||
|
|
||||||
case $distro in
|
case $distro in
|
||||||
Arch|Debian)
|
Arch|Debian)
|
||||||
echo "Emacs configuration"
|
|
||||||
|
|
||||||
folder="${HOME}/.config/emacs"
|
folder="${HOME}/.config/emacs"
|
||||||
mkdir -p $folder
|
mkdir -p $folder
|
||||||
echo "git clone"
|
echo "git clone"
|
||||||
@@ -123,7 +116,21 @@ case $distro in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# TODO: texmf
|
echo "post install"
|
||||||
|
case $distro in
|
||||||
|
Arch)
|
||||||
|
# workaround for python-pymupdf
|
||||||
|
folder="${HOME}/.cache/yay/python-pymupdf.custom"
|
||||||
|
rm -rf "$folder"
|
||||||
|
mkdir -p "$folder"
|
||||||
|
cd "$folder"
|
||||||
|
git clone https://aur.archlinux.org/python-pymupdf.git .
|
||||||
|
# same as, but will create a folder same as package: yay -G python-pymupdf
|
||||||
|
patch --forward --strip=1 --input="${HOME}/.config/emacs/scripts/fix-pymupdf-library-linking-for-arcolinux-PKGBUILD.patch"
|
||||||
|
# yay -S --mflags "-p PKGBUILD" --answerclean y --answerdiff n python-pymupdf
|
||||||
|
makepkg -si
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user