diff options
author | Poscat | 2019-11-25 21:03:58 +0800 |
---|---|---|
committer | Poscat | 2019-11-25 21:03:58 +0800 |
commit | d202b2226d687b36998fe843123fe9f9f44d2316 (patch) | |
tree | b052877bc0e92a16b760f06c1af6b5fa7d8a7ea3 | |
download | aur-d202b2226d687b36998fe843123fe9f9f44d2316.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | emacs-websocket.install | 14 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..126f23c8ef0a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = emacs-websocket + pkgdesc = Minor mode to preview markdown output as you save + pkgver = 1.12 + pkgrel = 1 + url = https://github.com/ahyatt/emacs-websocket + arch = any + license = GPL2 + depends = emacs + noextract = GPL3 + source = https://github.com/ahyatt/emacs-websocket/archive/v1.12.tar.gz + sha256sums = 7827f570005a4adc801878fc0a9679fbe015239701a6f8ff7eb6761dfbd15950 + +pkgname = emacs-websocket + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20f6e25a7e38 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Poscat <poscat@mail.poscat.moe> + +pkgname=emacs-websocket +pkgver=1.12 +pkgrel=1 +pkgdesc="A websocket implementation in elisp, for emacs." +arch=('any') +url="https://github.com/ahyatt/emacs-websocket" +license=('GPL2') +depends=('emacs') +makedepends=() +source=("https://github.com/ahyatt/emacs-websocket/archive/${pkgver}.tar.gz") +install=${pkgname}.install +noextract=('GPL3') +sha256sums=('be24796ad47335ce91ec3e142d52ee07f00ca79078312a0759bce135e1bf414e') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -D -m 644 websocket.el "${pkgdir}"/usr/share/emacs/site-lisp/websocket/websocket.el +} diff --git a/emacs-websocket.install b/emacs-websocket.install new file mode 100644 index 000000000000..0c1dd36258e3 --- /dev/null +++ b/emacs-websocket.install @@ -0,0 +1,14 @@ +post_install() { + cat <<EOF +=> to use this package, add + +(add-to-list 'load-path' "/usr/share/emacs/site-lisp/websocket/") +(require 'websocket) + +to the init file +EOF +} + +post_upgrade() { + post_install $1 +} |