From 8f1eff6b221a2e01385d314a55b6c96c949ce68c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Jul 2016 06:15:01 +0200 Subject: Disowned emacs-d-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs-d-mode [disowned]/PKGBUILD | 32 ++++++++++++++++++++++++++++ emacs-d-mode [disowned]/emacs-d-mode.install | 16 ++++++++++++++ emacs-d-mode [disowned]/upload | 1 + emacs-d-mode [disowned]/watch | 21 ++++++++++++++++++ emacs-d-mode/PKGBUILD | 32 ---------------------------- emacs-d-mode/emacs-d-mode.install | 16 -------------- emacs-d-mode/upload | 1 - emacs-d-mode/watch | 21 ------------------ 8 files changed, 70 insertions(+), 70 deletions(-) create mode 100644 emacs-d-mode [disowned]/PKGBUILD create mode 100644 emacs-d-mode [disowned]/emacs-d-mode.install create mode 120000 emacs-d-mode [disowned]/upload create mode 100755 emacs-d-mode [disowned]/watch delete mode 100644 emacs-d-mode/PKGBUILD delete mode 100644 emacs-d-mode/emacs-d-mode.install delete mode 120000 emacs-d-mode/upload delete mode 100755 emacs-d-mode/watch diff --git a/emacs-d-mode [disowned]/PKGBUILD b/emacs-d-mode [disowned]/PKGBUILD new file mode 100644 index 0000000..44dab27 --- /dev/null +++ b/emacs-d-mode [disowned]/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Contributor: Gianni Vialetto +# Contributor: Gour + +pkgname=emacs-d-mode +pkgver=2.0.8 +pkgrel=1 +pkgdesc="Emacs major mode for the D programming language" +url="http://www.wikiservice.at/d/wiki.cgi?EditorSupport/EmacsEditor" +arch=('any') +license=('GPL2') +depends=() +makedepends=(emacs) +install=$pkgname.install +source=(https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/archive/$pkgver.tar.gz) +sha256sums=('80ab7e82ebbb6afe4c7d9ab8e4feb597d2f84bd91739ac04120954594a7cd74e') + + +build() { + cd "$srcdir/Emacs-D-Mode-$pkgver" + + make compile +} + +package() { + cd "$srcdir/Emacs-D-Mode-$pkgver" + + install -m755 -d "$pkgdir/usr/share/emacs/site-lisp" + install -m644 d-mode.el "$pkgdir/usr/share/emacs/site-lisp" + install -m644 d-mode.elc "$pkgdir/usr/share/emacs/site-lisp" +} + diff --git a/emacs-d-mode [disowned]/emacs-d-mode.install b/emacs-d-mode [disowned]/emacs-d-mode.install new file mode 100644 index 0000000..a7f8c2f --- /dev/null +++ b/emacs-d-mode [disowned]/emacs-d-mode.install @@ -0,0 +1,16 @@ +post_install() { + cat << EOF +==> To set up Emacs to automatically edit files ending in .d[i] using D-mode +==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el +==> file (XEmacs): + + (autoload 'd-mode "d-mode" "Major mode for editing D code." t) + (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode)) + +EOF +} + +post_upgrade() { + post_install $1 +} + diff --git a/emacs-d-mode [disowned]/upload b/emacs-d-mode [disowned]/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/emacs-d-mode [disowned]/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/emacs-d-mode [disowned]/watch b/emacs-d-mode [disowned]/watch new file mode 100755 index 0000000..610a94f --- /dev/null +++ b/emacs-d-mode [disowned]/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f release ] && rm release + +wget https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/tags -O - 2>/dev/null | grep tag-name | grep -Po '>.+ release + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'emacs-d-mode' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'emacs-d-mode (unfetchable)' +fi + diff --git a/emacs-d-mode/PKGBUILD b/emacs-d-mode/PKGBUILD deleted file mode 100644 index 44dab27..0000000 --- a/emacs-d-mode/PKGBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> -# Contributor: Gianni Vialetto -# Contributor: Gour - -pkgname=emacs-d-mode -pkgver=2.0.8 -pkgrel=1 -pkgdesc="Emacs major mode for the D programming language" -url="http://www.wikiservice.at/d/wiki.cgi?EditorSupport/EmacsEditor" -arch=('any') -license=('GPL2') -depends=() -makedepends=(emacs) -install=$pkgname.install -source=(https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/archive/$pkgver.tar.gz) -sha256sums=('80ab7e82ebbb6afe4c7d9ab8e4feb597d2f84bd91739ac04120954594a7cd74e') - - -build() { - cd "$srcdir/Emacs-D-Mode-$pkgver" - - make compile -} - -package() { - cd "$srcdir/Emacs-D-Mode-$pkgver" - - install -m755 -d "$pkgdir/usr/share/emacs/site-lisp" - install -m644 d-mode.el "$pkgdir/usr/share/emacs/site-lisp" - install -m644 d-mode.elc "$pkgdir/usr/share/emacs/site-lisp" -} - diff --git a/emacs-d-mode/emacs-d-mode.install b/emacs-d-mode/emacs-d-mode.install deleted file mode 100644 index a7f8c2f..0000000 --- a/emacs-d-mode/emacs-d-mode.install +++ /dev/null @@ -1,16 +0,0 @@ -post_install() { - cat << EOF -==> To set up Emacs to automatically edit files ending in .d[i] using D-mode -==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el -==> file (XEmacs): - - (autoload 'd-mode "d-mode" "Major mode for editing D code." t) - (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode)) - -EOF -} - -post_upgrade() { - post_install $1 -} - diff --git a/emacs-d-mode/upload b/emacs-d-mode/upload deleted file mode 120000 index 1e7a8be..0000000 --- a/emacs-d-mode/upload +++ /dev/null @@ -1 +0,0 @@ -../upload \ No newline at end of file diff --git a/emacs-d-mode/watch b/emacs-d-mode/watch deleted file mode 100755 index 610a94f..0000000 --- a/emacs-d-mode/watch +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -[ -f release ] && rm release - -wget https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/tags -O - 2>/dev/null | grep tag-name | grep -Po '>.+ release - -if [ $? = 0 ]; then - [ -f unfetchable ] && rm unfetchable - md5sum release > new-sum - touch sum - if [ "$(cat sum)" = "$(cat new-sum)" ]; then - rm new-sum - else - mv new-sum sum - echo 'emacs-d-mode' - fi -elif [ ! -f unfetchable ]; then - touch unfetchable - echo 'emacs-d-mode (unfetchable)' -fi - -- cgit v1.2.3-70-g09d2