[arch-commits] Commit in emacs-php-mode/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:54:45 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:54:45
  Author: felixonmars
Revision: 659476

archrelease: copy trunk to community-staging-any

Added:
  emacs-php-mode/repos/community-staging-any/
  emacs-php-mode/repos/community-staging-any/PKGBUILD
    (from rev 659475, emacs-php-mode/trunk/PKGBUILD)
  emacs-php-mode/repos/community-staging-any/emacs-php-mode.install
    (from rev 659475, emacs-php-mode/trunk/emacs-php-mode.install)

------------------------+
 PKGBUILD               |   29 +++++++++++++++++++++++++++++
 emacs-php-mode.install |   13 +++++++++++++
 2 files changed, 42 insertions(+)

Copied: emacs-php-mode/repos/community-staging-any/PKGBUILD (from rev 659475, emacs-php-mode/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 16:54:45 UTC (rev 659476)
@@ -0,0 +1,29 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Stefano Esposito <ragnarok at email.it>
+
+pkgname=emacs-php-mode
+pkgver=1.19.1
+pkgrel=4
+license=("GPL")
+pkgdesc="PHP mode for emacs"
+url="https://github.com/ejmr/php-mode"
+arch=('any')
+depends=('emacs')
+options=(docs zipman)
+install=emacs-php-mode.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ejmr/php-mode/archive/v$pkgver.tar.gz")
+sha256sums=('23a891e989eb0466d1dddcb6cb62404d3f1c7a329d7ab6709c8fc16e1bc277c9')
+
+build() {
+  cd "$srcdir"/php-mode-$pkgver
+  make -j1
+}
+
+package() {
+  cd "$srcdir"/php-mode-$pkgver
+  for i in *.el{,c}; do
+    install -Dm0644 $i "$pkgdir"/usr/share/emacs/site-lisp/php-mode/$i
+  done
+  install -dm0755 "$pkgdir"/usr/share/emacs/site-lisp/php-mode
+  cp -a skeleton "$pkgdir"/usr/share/emacs/site-lisp/php-mode/skeleton
+}

Copied: emacs-php-mode/repos/community-staging-any/emacs-php-mode.install (from rev 659475, emacs-php-mode/trunk/emacs-php-mode.install)
===================================================================
--- community-staging-any/emacs-php-mode.install	                        (rev 0)
+++ community-staging-any/emacs-php-mode.install	2020-07-07 16:54:45 UTC (rev 659476)
@@ -0,0 +1,13 @@
+post_install() {
+  cat << EOF
+==> Put this in your $HOME/.emacs file to enable php-mode autoloading
+==> and autorecognition of "*.php" files:
+
+(autoload 'php-mode "php-mode.el" "Php mode." t)
+(setq auto-mode-alist (append '(("/.*\.php[345]?\\'" . php-mode)) auto-mode-alist))
+EOF
+}
+
+post_upgrade() {
+  post_install $1
+}



More information about the arch-commits mailing list