diff options
author | P. A. López-Valencia | 2015-07-07 17:24:18 -0500 |
---|---|---|
committer | P. A. López-Valencia | 2015-07-07 17:24:18 -0500 |
commit | 6d05df8afe804ee2854d0ae25f3d5e0a35349933 (patch) | |
tree | 56a3b2bc1b75ec175d152cdb8ad251b72f334fd0 | |
download | aur-6d05df8afe804ee2854d0ae25f3d5e0a35349933.tar.gz |
0.5.4-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | mmm-mode.install | 33 |
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d676a00b7eef --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = emacs-mmm-mode + pkgdesc = minor mode for Emacs that allows Multiple Major Modes to coexist in one buffer + pkgver = 0.5.4 + pkgrel = 1 + url = http://mmm-mode.sourceforge.net/ + install = mmm-mode.install + arch = any + license = GPL + provides = mmm-mode + conflicts = mmm-mode + source = https://github.com/purcell/mmm-mode/archive/0.5.4.tar.gz + sha256sums = db55529ba95f841826bee952e73e55b87d9c191004e7c985a9582eea2cd57c82 + +pkgname = emacs-mmm-mode + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fa9b07747604 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*~ +pkg/ +src/ +*.gz +*.bz2 +*.xz +*.lzo +*.xz4 +*.tgz +*.tbz +*.txz +*.tar +*.jar +*.zip diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be57a526f1c8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# See AUR interface for current maintainer. +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> +pkgname=emacs-mmm-mode +pkgver=0.5.4 +pkgrel=1 +pkgdesc="minor mode for Emacs that allows Multiple Major Modes to \ +coexist in one buffer" +url="http://mmm-mode.sourceforge.net/" +arch=('any') +provides=('mmm-mode') +conflicts=('mmm-mode') +license=('GPL') +install=mmm-mode.install +source=("https://github.com/purcell/mmm-mode/archive/$pkgver.tar.gz") +sha256sums=('db55529ba95f841826bee952e73e55b87d9c191004e7c985a9582eea2cd57c82') + +build() { + cd "$srcdir/${pkgname#emacs-}-$pkgver" + ./configure --prefix=/usr --infodir=/usr/share/info + make +} +package() { + cd "$srcdir/${pkgname#emacs-}-$pkgver" + make DESTDIR=$pkgdir install +} diff --git a/mmm-mode.install b/mmm-mode.install new file mode 100644 index 000000000000..fefaeb43e9b4 --- /dev/null +++ b/mmm-mode.install @@ -0,0 +1,33 @@ +post_install() { +echo "Please put one of the following lines into your .emacs file" +echo "(require 'mmm-mode)" +echo "(require 'mmm-auto)" +echo "Refer to the info-manual for further advice." +echo "Please put the following line to your .emacs file" +echo "(setq load-path (cons \"/usr/share/emacs/site-lisp/mmm-mode\" load-path))" +echo "Adding Info-File" +install-info /usr/share/info/mmm.info.gz /usr/share/info/dir +} + +pre_remove() { + echo "Removing entry in info-file (dir)" + install-info --delete /usr/share/info/mmm.info.gz /usr/share/info/dir + echo "Please remove the lines concerning mmm-mode from your .emacs" + /bin/true +} + +post_upgrade() { + echo "Please put one of the following lines into your .emacs file" + echo "(require 'mmm-mode)" + echo "(require 'mmm-auto)" + echo "Refer to the info-manual for further advice." + echo "Please put the following line to your .emacs file" + echo "(setq load-path (cons \"/usr/share/emacs/site-lisp/mmm-mode\" load-path))" + echo "Adding Info-file" + install-info /usr/share/info/mmm.info.gz /usr/share/info/dir + /bin/true +} + +op=$1 +shift +$op $*
\ No newline at end of file |