Compare commits
4 Commits
cc5a4ebbe6
...
fe9d2ed6ea
Author | SHA1 | Date | |
---|---|---|---|
fe9d2ed6ea | |||
18d79b2efe | |||
1280086985 | |||
90063ae6c5 |
@ -210,7 +210,7 @@ pass \
|
||||
pdfpc \
|
||||
ripgrep \
|
||||
rsync \
|
||||
scrot \
|
||||
flameshot \
|
||||
tealdeer \
|
||||
tmux \
|
||||
tree \
|
||||
@ -243,10 +243,10 @@ for pkg in $APPSPKG
|
||||
paru -S --skipreview --needed $pkg
|
||||
end
|
||||
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/emacs && makepkg -si; cd ..
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/nsxiv && makepkg -si; cd ..
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/pumopm-git && makepkg -si; cd ..
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/sent && makepkg -si; cd ..
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/emacs && makepkg -si && cd
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/nsxiv && makepkg -si && cd
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/pumopm-git && makepkg -si && cd
|
||||
cd /home/phundrak/Documents/code/PKGBUILDs/sent && makepkg -si && cd
|
||||
|
||||
mkdir -p $HOME/.config/fish
|
||||
mkdir -p $HOME/.config/gtk-2.0
|
||||
@ -295,11 +295,6 @@ emacs -q --batch --eval '(require \'ob-tangle)' \
|
||||
--eval '(setq org-confirm-babel-evaluate nil)' \
|
||||
--eval '(org-babel-tangle-file "~/org/config/picom.org")'
|
||||
|
||||
printf '\n\n==== Tangling rustfmt.org\n\n' && \
|
||||
emacs -q --batch --eval '(require \'ob-tangle)' \
|
||||
--eval '(setq org-confirm-babel-evaluate nil)' \
|
||||
--eval '(org-babel-tangle-file "~/org/config/rustfmt.org")'
|
||||
|
||||
printf '\n\n==== Tangling stumpwm.org\n\n' && \
|
||||
emacs -q --batch --eval '(require \'ob-tangle)' \
|
||||
--eval '(setq org-confirm-babel-evaluate nil)' \
|
||||
@ -376,10 +371,9 @@ rustup default stable
|
||||
rustup toolchain install nightly
|
||||
|
||||
printf "\n# Add rust utilities ##########################################################\n\n"
|
||||
cargo install rustfmt racer
|
||||
cargo install rustfmt
|
||||
|
||||
rustup component add rust-src
|
||||
rustup component add rls
|
||||
rustup component add clippy
|
||||
|
||||
printf "\n# Installing fisher ###########################################################\n\n"
|
||||
|
@ -1,9 +1,9 @@
|
||||
.authinfo.gpg
|
||||
.ssh/*
|
||||
.mailrc
|
||||
.mbsyncrc
|
||||
org/*.org
|
||||
.config/fish/private.fish
|
||||
org/roam/*
|
||||
.config/isync/mbsyncrc
|
||||
.local/share/gnupg/*
|
||||
.mailrc
|
||||
.profile.private
|
||||
.ssh/*
|
||||
org/*.org
|
||||
org/roam/*
|
||||
|
Binary file not shown.
152
.profile
Normal file → Executable file
152
.profile
Normal file → Executable file
@ -1,87 +1,96 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "$HOME"/.profile.private
|
||||
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_STATE_HOME="$HOME/.local/state"
|
||||
|
||||
export EMAIL="lucien@phundrak.com"
|
||||
export EMAIL=lucien@phundrak.com
|
||||
export NAME="Lucien Cartier-Tilet"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||
export LSP_USE_PLISTS=true
|
||||
|
||||
export XDG_CACHE_HOME="$HOME"/.cache
|
||||
export XDG_CONFIG_HOME="$HOME"/.config
|
||||
export XDG_DATA_HOME="$HOME"/.local/share
|
||||
export XDG_STATE_HOME="$HOME"/.local/state
|
||||
|
||||
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
export SSH_AUTH_SOCK
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":/usr/local/lib
|
||||
export LSP_USE_PLISTS=true
|
||||
export DIFFPROG=ediff
|
||||
export SUDO_ASKPASS="$HOME"/.local/bin/askpass
|
||||
export MANPAGER=less
|
||||
|
||||
export HISTFILE="${XDG_STATE_HOME}/bash/history"
|
||||
export _Z_DATA="$XDG_DATA_HOME"/z
|
||||
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
||||
export TEXMFVAR="$XDG_CACHE_HOME"/texlive/texmf-var
|
||||
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
||||
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
|
||||
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
|
||||
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
|
||||
export PYLINTHOME="${XDG_CACHE_HOME}"/pylint
|
||||
export PYENV_ROOT="$XDG_DATA_HOME"/pyenv
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
|
||||
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
|
||||
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java"
|
||||
export NVM_DIR="$XDG_DATA_HOME"/nvm
|
||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||
export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||
export TERMINFO="$XDG_DATA_HOME"/terminfo
|
||||
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
||||
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
|
||||
export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority
|
||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||
export GOPATH="$XDG_DATA_HOME"/go
|
||||
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||
export GEM_HOME="${XDG_DATA_HOME}"/gem
|
||||
export GEM_SPEC_CACHE="${XDG_CACHE_HOME}"/gem
|
||||
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
|
||||
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||
export DART_SDK=/opt/dart-sdk/bin
|
||||
export ANDROID_HOME="$HOME"/Android/Sdk
|
||||
export CHROME_EXECUTABLE=/usr/bin/chromium
|
||||
|
||||
LESS_TERMCAP_mb=$(printf '\e[1;32m')
|
||||
export LESS_TERMCAP_mb
|
||||
LESS_TERMCAP_md=$(printf '\e[1;32m')
|
||||
export LESS_TERMCAP_md
|
||||
LESS_TERMCAP_me=$(printf '\e[0m')
|
||||
export LESS_TERMCAP_me
|
||||
LESS_TERMCAP_se=$(printf '\e[0m')
|
||||
export LESS_TERMCAP_se
|
||||
LESS_TERMCAP_so=$(printf '\e[01;33m')
|
||||
export LESS_TERMCAP_so
|
||||
LESS_TERMCAP_ue=$(printf '\e[0m')
|
||||
export LESS_TERMCAP_ue
|
||||
LESS_TERMCAP_us=$(printf '\e[1;4;31m')
|
||||
export LESS_TERMCAP_us
|
||||
|
||||
export BROWSER=firefox
|
||||
|
||||
export EDITOR="emacsclient -c"
|
||||
export VISUAL="emacsclient -c"
|
||||
|
||||
export GTK_THEME="Nordic"
|
||||
export GTK_THEME=Nordic
|
||||
export GTK_ICON_THEME="Flat-Remix-Dark"
|
||||
|
||||
export DART_SDK=/opt/dart-sdk/bin
|
||||
export ANDROID_HOME="$HOME/Android/Sdk"
|
||||
export CHROME_EXECUTABLE=/usr/bin/chromium
|
||||
|
||||
export DENO_DIR="$HOME/.config/deno"
|
||||
export DENO_INSTALL_ROOT="$HOME/.local/bin/deno"
|
||||
|
||||
export DIFFPROG=ediff
|
||||
export SUDO_ASKPASS="$HOME/.local/bin/askpass"
|
||||
export MANPAGER='less'
|
||||
|
||||
export BROWSER=firefox
|
||||
export XMODIFIERS=
|
||||
|
||||
LESS_TERMCAP_mb="$(printf '\e[1;32m')"
|
||||
LESS_TERMCAP_md="$(printf '\e[1;32m')"
|
||||
LESS_TERMCAP_me="$(printf '\e[0m')"
|
||||
LESS_TERMCAP_se="$(printf '\e[0m')"
|
||||
LESS_TERMCAP_so="$(printf '\e[01;33m')"
|
||||
LESS_TERMCAP_ue="$(printf '\e[0m')"
|
||||
LESS_TERMCAP_us="$(printf '\e[1;4;31m')"
|
||||
export LESS_TERMCAP_mb
|
||||
export LESS_TERMCAP_md
|
||||
export LESS_TERMCAP_me
|
||||
export LESS_TERMCAP_se
|
||||
export LESS_TERMCAP_so
|
||||
export LESS_TERMCAP_ue
|
||||
export LESS_TERMCAP_us
|
||||
|
||||
alias wget='wget --hsts-file=$XDG_DATA_HOME/wget-hsts'
|
||||
export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java -Djavafx.cachedir=${XDG_CACHE_HOME}/openjfx"
|
||||
export _Z_DATA="$XDG_DATA_HOME"/z
|
||||
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
|
||||
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
|
||||
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
|
||||
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||
export DENO_DIR="$HOME"/.config/deno
|
||||
export DENO_INSTALL_ROOT="$HOME"/.local/bin/deno
|
||||
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
|
||||
export GEM_HOME="$XDG_DATA_HOME"/gem
|
||||
export GEM_SPEC_CACHE="$XDG_CACHE_HOME"/gem
|
||||
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||
export GOPATH="$XDG_DATA_HOME"/go
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||
export HISTFILE="$XDG_STATE_HOME/bash/history"
|
||||
export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority
|
||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
||||
export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
|
||||
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
|
||||
export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
||||
export NVM_DIR="$XDG_DATA_HOME"/nvm
|
||||
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
|
||||
export PKG_CACHE_PATH="$XDG_CACHE_HOME"/pkg-cache
|
||||
export PSQL_HISTORY="$XDG_DATA_HOME/psql_history"
|
||||
export PYENV_ROOT="$XDG_DATA_HOME"/pyenv
|
||||
export PYLINTHOME="$XDG_CACHE_HOME"/pylint
|
||||
export PYTHONSTARTUP="$HOME"/python/pythonrc
|
||||
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
||||
export SQLITE_HISTORY="$XDG_CACHE_HOME"/sqlite_history
|
||||
export TERMINFO="$XDG_DATA_HOME"/terminfo
|
||||
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
||||
export TEXMFVAR="$XDG_CACHE_HOME"/texlive/texmf-var
|
||||
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
||||
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
||||
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
||||
export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose
|
||||
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
|
||||
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
|
||||
export DOTNET_CLI_HOME="$XDG_DATA_HOME"/dotnet
|
||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||
export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
|
||||
|
||||
PATH="/usr/lib/xfce-polkit/:$PATH"
|
||||
PATH="$HOME/.cabal/bin:$PATH"
|
||||
@ -91,5 +100,6 @@ PATH="$GOPATH/bin:$PATH"
|
||||
PATH="${CARGO_HOME}/bin:$PATH"
|
||||
PATH="$HOME/Android/Sdk/tools/bin:$PATH"
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
PATH="$HOME/.local/share/containers/podman-desktop/extensions-storage/compose/bin/:$PATH"
|
||||
PATH="$HOME/.config/plover/plugins/linux/bin:$PATH"
|
||||
PATH="$HOME/.nix-profile/bin:$PATH"
|
||||
export PATH
|
||||
|
@ -1,363 +0,0 @@
|
||||
# Maintainer: Lucien Cartier-Tilet <https://aur.archlinux.org/users/phundrak>
|
||||
|
||||
################################################################################
|
||||
# CAVEAT LECTOR: This PKGBUILD is highly opinionated. I give you
|
||||
# enough rope to hang yourself, but by default it
|
||||
# only enables the features I use.
|
||||
#
|
||||
# TLDR: yaourt users, cry me a river.
|
||||
#
|
||||
# Everyone else: do not update blindly this PKGBUILD. At least
|
||||
# make sure to compare and understand the changes.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
# Assign "YES" to the variable you want enabled; empty or any other value
|
||||
# for NO.
|
||||
#
|
||||
# Where you read experimental, replace with foobar.
|
||||
# =================================================
|
||||
#
|
||||
################################################################################
|
||||
CHECK= # Run tests. May fail, this is developement after all.
|
||||
CLANG= # Use clang.
|
||||
GOLD="YES" # Use the gold linker.
|
||||
LTO="YES" # Enable link-time optimization. Still experimental.
|
||||
JIT="YES" # Enable native just-in-time compilation. libgccjit is in AUR.
|
||||
# This compiles only performance critical elisp files.
|
||||
#
|
||||
# To compile all site-lisp on demand (repos/AUR packages,
|
||||
# ELPA, MELPA, whatever), add
|
||||
# (setq comp-deferred-compilation t)
|
||||
# to your .emacs file.
|
||||
AOT="YES" # Compile all elisp files.
|
||||
CLI= # CLI only binary.
|
||||
GPM= # Mouse support in Linux console using gpmd.
|
||||
NOTKIT= # Use no toolkit widgets. Like B&W Twm (001d sk00l).
|
||||
# Bitmap fonts only, 1337!
|
||||
PGTK="YES" # Use native GTK3 build. Supports Wayland, yay!
|
||||
GTK3= # GTK3 old windowing interface.
|
||||
LUCID= # Use the lucid, a.k.a athena, toolkit. Like XEmacs, sorta.
|
||||
#
|
||||
# Read https://wiki.archlinux.org/index.php/X_resources
|
||||
# https://en.wikipedia.org/wiki/X_resources
|
||||
# and https://www.emacswiki.org/emacs/XftGnuEmacs
|
||||
# for some tips on using outline fonts with
|
||||
# Xft, if you choose no toolkit or Lucid.
|
||||
XI2="YES" # Use Xinput2 support.
|
||||
# https://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt
|
||||
ALSA= # Linux sound support.
|
||||
NOCAIRO= # Disable here.
|
||||
XWIDGETS="YES" # Use GTK+ widgets pulled from webkit2gtk. Somewhat usable.
|
||||
DOCS_HTML="YES" # Generate and install html documentation.
|
||||
DOCS_PDF= # Generate and install pdf documentation.
|
||||
NOGZ= # Don't compress .el files.
|
||||
TREESITTER="YES" # Enable Emacs' native tree-sitter implementation.
|
||||
# It is necessary to also install tree-sitter
|
||||
# packages per language, such as tree-sitter-c for
|
||||
# c-ts-mode.
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
if [[ $CLI == "YES" ]] ; then
|
||||
pkgname="emacs-nox-phundrak-git"
|
||||
else
|
||||
pkgname="emacs-phundrak-git"
|
||||
fi
|
||||
pkgver=29.0.92.165437
|
||||
pkgrel=1
|
||||
pkgdesc="GNU Emacs. Development master branch with Phundrak’s tweaks."
|
||||
arch=('x86_64')
|
||||
url="http://www.gnu.org/software/emacs/"
|
||||
license=('GPL3')
|
||||
depends_nox=('gnutls' 'libxml2' 'jansson')
|
||||
depends=("${depends_nox[@]}" 'harfbuzz')
|
||||
makedepends=('git')
|
||||
provides=('emacs')
|
||||
replaces=('emacs')
|
||||
# source=("emacs-git::git://git.savannah.gnu.org/emacs.git")
|
||||
source=("emacs-git::git+https://git.savannah.gnu.org/git/emacs.git#branch=emacs-29")
|
||||
b2sums=('SKIP')
|
||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
||||
install=emacs-git.install
|
||||
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
|
||||
CFLAGS+=" -O2 -march=native -mtune=native"
|
||||
CXXFLAGS+=" -O2 -march=native -mtune=native"
|
||||
|
||||
if [[ $GOLD == "YES" && ! $CLANG == "YES" ]]; then
|
||||
export LD=/usr/bin/ld.gold
|
||||
export CFLAGS+=" -fuse-ld=gold";
|
||||
export CXXFLAGS+=" -fuse-ld=gold";
|
||||
elif [[ $GOLD == "YES" && $CLANG == "YES" ]]; then
|
||||
echo "";
|
||||
echo "Clang rather uses its own linker.";
|
||||
echo "";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if [[ $CLANG == "YES" ]]; then
|
||||
export CC="/usr/bin/clang" ;
|
||||
export CXX="/usr/bin/clang++" ;
|
||||
export CPP="/usr/bin/clang -E" ;
|
||||
export LD="/usr/bin/lld" ;
|
||||
export AR="/usr/bin/llvm-ar" ;
|
||||
export AS="/usr/bin/llvm-as" ;
|
||||
export CCFLAGS+=' -fuse-ld=lld' ;
|
||||
export CXXFLAGS+=' -fuse-ld=lld' ;
|
||||
makedepends+=( 'clang' 'lld' 'llvm') ;
|
||||
fi
|
||||
|
||||
if [[ $TREESITTER == "YES" ]]; then
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
depends_nox+=( 'tree-sitter' );
|
||||
else
|
||||
depends+=( 'tree-sitter' );
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $JIT == "YES" ]]; then
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
depends_nox+=( 'libgccjit' );
|
||||
else
|
||||
depends+=( 'libgccjit' );
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! $CLI == "YES" ]]; then
|
||||
depends+=( 'libxi' );
|
||||
fi
|
||||
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
depends=("${depends_nox[@]}");
|
||||
elif [[ $NOTKIT == "YES" ]]; then
|
||||
depends+=( 'dbus' 'hicolor-icon-theme' 'libxinerama' 'libxrandr' 'lcms2' 'librsvg' 'libxfixes' 'libxi' 'libsm' 'xcb-util' 'libxcb' );
|
||||
makedepends+=( 'xorgproto' );
|
||||
elif [[ $LUCID == "YES" ]]; then
|
||||
depends+=( 'dbus' 'hicolor-icon-theme' 'libxinerama' 'libxfixes' 'lcms2' 'librsvg' 'xaw3d' 'libxrandr' 'libxi' 'libsm' 'xcb-util' 'libxcb' );
|
||||
makedepends+=( 'xorgproto' );
|
||||
elif [[ $GTK3 == "YES" ]]; then
|
||||
depends+=( 'gtk3' 'libsm' 'xcb-util' 'libxcb' );
|
||||
makedepends+=( 'xorgproto' 'libxi' );
|
||||
elif [[ $PGTK == "YES" ]]; then
|
||||
depends+=( 'gtk3' 'libsm' 'xcb-util' 'libxcb' );
|
||||
makedepends+=( 'xorgproto' 'libxi' );
|
||||
fi
|
||||
|
||||
if [[ ! $NOX == "YES" ]] && [[ ! $CLI == "YES" ]]; then
|
||||
depends+=( 'libjpeg-turbo' 'libpng' 'giflib' 'libwebp' 'libtiff' 'libxpm');
|
||||
elif [[ $CLI == "YES" ]]; then
|
||||
depends+=();
|
||||
fi
|
||||
|
||||
if [[ $ALSA == "YES" ]]; then
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
depends_nox+=( 'alsa-lib' );
|
||||
else
|
||||
depends+=( 'alsa-lib' );
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! $NOCAIRO == "YES" ]] && [[ ! $CLI == "YES" ]] && [[ ! $PGTK == "YES" ]] ; then
|
||||
depends+=( 'cairo' );
|
||||
fi
|
||||
|
||||
if [[ $XWIDGETS == "YES" ]]; then
|
||||
if [[ $LUCID == "YES" ]] || [[ $NOTKIT == "YES" ]] || [[ $CLI == "YES" ]]; then
|
||||
echo "";
|
||||
echo "";
|
||||
echo "Xwidgets support **requires** GTK+3!!!";
|
||||
echo "";
|
||||
echo "";
|
||||
exit 1;
|
||||
else
|
||||
depends+=( 'webkit2gtk' );
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $GPM == "YES" ]]; then
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
depends_nox+=( 'gpm' );
|
||||
else
|
||||
depends+=( 'gpm' );
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $DOCS_PDF == "YES" ]] && [[ ! -d '/usr/local/texlive' ]]; then
|
||||
makedepends+=( 'texlive-core' );
|
||||
fi
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
pkgver() {
|
||||
cd "$srcdir/emacs-git"
|
||||
|
||||
printf "%s.%s" \
|
||||
$(grep AC_INIT configure.ac | \
|
||||
awk -F',' '{ gsub("[ \\[\\]]","",$2); print $2 }') \
|
||||
$(git rev-list --count HEAD)
|
||||
}
|
||||
|
||||
# There is no need to run autogen.sh after first checkout.
|
||||
# Doing so, breaks incremental compilation.
|
||||
prepare() {
|
||||
cd "$srcdir/emacs-git"
|
||||
[[ -x configure ]] || ( ./autogen.sh git && ./autogen.sh autoconf )
|
||||
mkdir -p "$srcdir/emacs-git/build"
|
||||
}
|
||||
|
||||
if [[ $CHECK == "YES" ]]; then
|
||||
check() {
|
||||
cd "$srcdir/emacs-git/build"
|
||||
make check
|
||||
}
|
||||
fi
|
||||
|
||||
build() {
|
||||
cd "$srcdir/emacs-git/build"
|
||||
|
||||
local _conf=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libexecdir=/usr/lib
|
||||
--localstatedir=/var
|
||||
--mandir=/usr/share/man
|
||||
--with-gameuser=:games
|
||||
--with-modules
|
||||
--without-libotf
|
||||
--without-m17n-flt
|
||||
# Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228
|
||||
# dconf and gconf break font settings you set in ~/.emacs.
|
||||
# If you insist you'll need to read that bug report in *full*.
|
||||
# Good luck!
|
||||
--without-gconf
|
||||
)
|
||||
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
|
||||
if [[ $CLANG == "YES" ]]; then
|
||||
_conf+=( '--enable-autodepend' );
|
||||
fi
|
||||
|
||||
if [[ $LTO == "YES" ]]; then
|
||||
_conf+=( '--enable-link-time-optimization' );
|
||||
fi
|
||||
|
||||
if [[ $JIT == "YES" ]]; then
|
||||
_conf+=( '--with-native-compilation' );
|
||||
fi
|
||||
|
||||
if [[ $XI2 == "YES" ]]; then
|
||||
_conf+=( '--with-xinput2' );
|
||||
fi
|
||||
|
||||
if [[ $CLI == "YES" ]]; then
|
||||
_conf+=( '--without-x' '--with-x-toolkit=no' '--without-xft' '--without-lcms2' '--without-rsvg' '--without-jpeg' '--without-gif' '--without-tiff' '--without-png' );
|
||||
elif [[ $NOTKIT == "YES" ]]; then
|
||||
_conf+=( '--with-x-toolkit=no' '--without-toolkit-scroll-bars' '--without-xft' '--without-xaw3d' );
|
||||
elif [[ $LUCID == "YES" ]]; then
|
||||
_conf+=( '--with-x-toolkit=lucid' '--with-xft' '--with-xaw3d' );
|
||||
elif [[ $GTK3 == "YES" ]]; then
|
||||
_conf+=( '--with-x-toolkit=gtk3' '--without-xaw3d' );
|
||||
elif [[ $PGTK == "YES" ]]; then
|
||||
_conf+=( '--with-pgtk' '--without-xaw3d' );
|
||||
fi
|
||||
|
||||
if [[ ! $PGTK == "YES" ]]; then
|
||||
_conf+=( '--without-gsettings' ) :
|
||||
fi
|
||||
|
||||
if [[ $NOCAIRO == "YES" || $CLI == "YES" || $NOTKIT == "YES" || $LUCID == "YES" ]]; then
|
||||
_conf+=( '--without-cairo' );
|
||||
fi
|
||||
|
||||
if [[ $ALSA == "YES" ]]; then
|
||||
_conf+=( '--with-sound=alsa' );
|
||||
else
|
||||
_conf+=( '--with-sound=no' );
|
||||
fi
|
||||
|
||||
if [[ $XWIDGETS == "YES" ]]; then
|
||||
_conf+=( '--with-xwidgets' );
|
||||
fi
|
||||
|
||||
if [[ $GPM == "YES" ]]; then
|
||||
true
|
||||
else
|
||||
_conf+=( '--without-gpm' );
|
||||
fi
|
||||
|
||||
if [[ $NOGZ == "YES" ]]; then
|
||||
_conf+=( '--without-compress-install' );
|
||||
fi
|
||||
|
||||
if [[ $TREESITTER == "YES" ]]; then
|
||||
_conf+=( '--with-tree-sitter' );
|
||||
fi
|
||||
|
||||
# ctags/etags may be provided by other packages, e.g, universal-ctags
|
||||
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')
|
||||
|
||||
################################################################################
|
||||
|
||||
################################################################################
|
||||
|
||||
../configure "${_conf[@]}"
|
||||
|
||||
# Using "make" instead of "make bootstrap" enables incremental
|
||||
# compiling. Less time recompiling. Yay! But you may
|
||||
# need to use bootstrap sometimes to unbreak the build.
|
||||
# Just add it to the command line.
|
||||
#
|
||||
# Please note that incremental compilation implies that you
|
||||
# are reusing your src directory!
|
||||
#
|
||||
if [[ $JIT == "YES" ]] && [[ $AOT == "YES" ]]; then
|
||||
make NATIVE_FULL_AOT=1
|
||||
else
|
||||
make
|
||||
fi
|
||||
|
||||
# You may need to run this if 'loaddefs.el' files become corrupt.
|
||||
#cd "$srcdir/emacs-git/lisp"
|
||||
#make autoloads
|
||||
#cd ../build
|
||||
|
||||
# Optional documentation formats.
|
||||
if [[ $DOCS_HTML == "YES" ]]; then
|
||||
make html;
|
||||
fi
|
||||
if [[ $DOCS_PDF == "YES" ]]; then
|
||||
make pdf;
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/emacs-git/build"
|
||||
|
||||
make DESTDIR="$pkgdir/" install
|
||||
|
||||
# Install optional documentation formats
|
||||
if [[ $DOCS_HTML == "YES" ]]; then make DESTDIR="$pkgdir/" install-html; fi
|
||||
if [[ $DOCS_PDF == "YES" ]]; then make DESTDIR="$pkgdir/" install-pdf; fi
|
||||
|
||||
# fix user/root permissions on usr/share files
|
||||
find "$pkgdir"/usr/share/emacs/ | xargs chown root:root
|
||||
|
||||
# fix permssions on /var/games
|
||||
mkdir -p "$pkgdir"/var/games/emacs
|
||||
chmod 775 "$pkgdir"/var/games
|
||||
chmod 775 "$pkgdir"/var/games/emacs
|
||||
chown -R root:games "$pkgdir"/var/games
|
||||
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# vim:set ft=bash ts=2 sw=2 et:
|
Loading…
x
Reference in New Issue
Block a user