diff options
author | Alex Whitt | 2017-05-30 18:53:20 -0400 |
---|---|---|
committer | Alex Whitt | 2017-05-30 18:53:20 -0400 |
commit | 2cb9f1bb460c0f8d1e7b8a9783c4b22a2e0e8847 (patch) | |
tree | c897215da284e36c667944884e6d5fd30d787cb0 | |
download | aur-2cb9f1bb460c0f8d1e7b8a9783c4b22a2e0e8847.tar.gz |
Initial commit (WIP)
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | emacs-elpy.install | 21 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5fca2e45ac5f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Tue May 30 22:53:04 UTC 2017 +pkgbase = emacs-elpy + pkgdesc = Emacs Python Development Environment + pkgver = 1.15.1 + pkgrel = 1 + url = https://github.com/jorgenschaefer/elpy + install = emacs-elpy.install + arch = any + license = GPL3 + depends = emacs + depends = emacs-company-mode + depends = emacs-find-file-in-project + depends = emacs-highlight-indentation + depends = emacs-pyvenv + depends = emacs-yasnippet + depends = emacs-s + depends = python-elpy + source = emacs-elpy-1.15.1.tar.gz::https://github.com/jorgenschaefer/elpy/archive/1.15.1.tar.gz + sha256sums = 562b04790c1fa70bf9370330fee84f727f402e2658d7184cb068ffb10e41ddfd + +pkgname = emacs-elpy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dddd6dcf6055 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com> + +_pkgsrcname=elpy +_pkgmaintainer=jorgenschaefer +_pkgdestdirname=elpy +_versionprefix= +pkgver=1.15.1 +pkgrel=1 +pkgdesc="Emacs Python Development Environment" +pkgname=emacs-${_pkgdestdirname} +arch=(any) +url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}" +license=('GPL3') +depends=('emacs' 'emacs-company-mode' 'emacs-find-file-in-project' 'emacs-highlight-indentation' 'emacs-pyvenv' 'emacs-yasnippet' 'emacs-s' 'python-elpy') +source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz") +sha256sums=('562b04790c1fa70bf9370330fee84f727f402e2658d7184cb068ffb10e41ddfd') +install=${pkgname}.install + +build() { + cd "${srcdir}/${_pkgsrcname}-${pkgver}" + emacs -q --no-splash -batch -L . -f batch-byte-compile *.el +} + +package() { + cd "${srcdir}/${_pkgsrcname}-${pkgver}" + mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/" + install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/" +} diff --git a/emacs-elpy.install b/emacs-elpy.install new file mode 100644 index 000000000000..741174cd2e86 --- /dev/null +++ b/emacs-elpy.install @@ -0,0 +1,21 @@ +post_install () { + +cat << EOF + +==> Add this code to your .emacs file to use the mode: + +(require 'elpy) +(elpy-enable) + +==> Or do the above with use-package: + +(use-package elpy + :config + (elpy-enable)) + +EOF +} + +post_upgrade () { + post_install $1 +} |