[Emacs, AUR] Update and add Emacs PKGBUILD, upgrade org-mode
This commit rebases my Emacs PKGBUILD on the one used by `emacs-git'. By default, my compiler will now use the gold linker, native-compilation, and ahead of time elisp native compilation. It stills include PDF documentation and xwidgets browser, but removes the HTML docs. Recently, the `contrib/' directory of org moved to a different repository. This broke the previous `emacs-org-mode-git' package. This commit adds a new PKGBUILD for `emacs-org-mode-git' and adds a configuration snippet for `org-contrib' in my vanilla Emacs configuration.
This commit is contained in:
39
Documents/code/AUR/org-mode/PKGBUILD
Normal file
39
Documents/code/AUR/org-mode/PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
||||
# contributor: zhuqin <zhuqin83@gmail.com>
|
||||
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
|
||||
|
||||
pkgname=emacs-org-mode-git
|
||||
pkgver=9.4.6.r541.g52b09799c
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Emacs Org Mode from git"
|
||||
arch=('any')
|
||||
url="http://orgmode.org/"
|
||||
depends=('emacs')
|
||||
makedepends=('git' 'texlive-core' 'perl' 'awk')
|
||||
optdepends=('java-environment: for using ditaa.jar in the contrib directory'
|
||||
'zsh: for using dir2org.zsh in the contrib directory')
|
||||
license=('GPL')
|
||||
provides=("emacs-org-mode=$pkgver")
|
||||
conflicts=('emacs-org-mode')
|
||||
install=emacs-org-mode.install
|
||||
source=(emacs-org-mode::git+https://code.orgmode.org/bzg/org-mode.git)
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd ${pkgname%-git}
|
||||
git describe --tags | sed 's+-+.r+' | cut -c9- | tr - .
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname%-git}
|
||||
make
|
||||
}
|
||||
|
||||
package () {
|
||||
cd ${pkgname%-git}
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
mkdir -p "$pkgdir"/usr/share/info/orgmode
|
||||
find "$pkgdir"/usr/share/info -maxdepth 1 -type f -exec mv {} "$pkgdir"/usr/share/info/orgmode \;
|
||||
install -d "$pkgdir"/usr/share/emacs/site-lisp/org_contrib
|
||||
}
|
||||
Reference in New Issue
Block a user