[PKGBUILD] Remove unused PKGBUILD for org-mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2021-11-08 14:31:48 +01:00
parent dee0441336
commit 6d799ecb43
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 0 additions and 83 deletions

View File

@ -1,39 +0,0 @@
# contributor: zhuqin <zhuqin83@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-org-mode-git
pkgver=9.4.6.r544.gc5573bdf4
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
}

View File

@ -1,44 +0,0 @@
INFODIR=/usr/share/info
pre_install() {
##! for file in {org,org-?.gz} ; do
##! if [ -e $INFODIR/$file ] ; then
##! echo "Removing $INFODIR/$file"
##! install-info --delete $INFODIR/$file $INFODIR/dir 2> /dev/null
##! rm -f $INFODIR/$file
##! fi
##! done
cat << EOM
To enable this version of org-mode instead of the one shipped with emacs,
add the line:
(require 'org-install)
to your .emacs file.
NOTE: info documentation for emacs-org-mode goes now as 'orgmode' in /usr/share/info,
It does NOT replace the 'org' info files shipped with emacs:
$ info orgmode ## this version
$ info org ## emacs' org version
EOM
}
post_install() {
##! mv $INFODIR/orgmode.gz $INFODIR/org.gz
##! install-info $INFODIR/org.gz $INFODIR/dir 2> /dev/null
##! and comment out the following line:
install-info --name='orgmode' --description='Org Mode provided by emacs-org-mode (AUR)' $INFODIR/orgmode.gz $INFODIR/dir 2> /dev/null
echo "For odt export, define a variable org-odt-data-dir to point "
echo "to an existing directory, e.g."
echo "(defvar org-odt-data-dir \"~/.emacs.d/org/etc\")"
}
post_upgrade() {
post_install
}
pre_remove() {
install-info --delete $INFODIR/orgmode.gz $INFODIR/dir 2> /dev/null
##! comment out the line above and uncomment the following:
##! install-info --delete $INFODIR/org.gz $INFODIR/dir 2> /dev/null
##! rm $INFODIR/org.gz 2> /dev/null
}