summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
-rw-r--r--emacs-py-autopep8.install18
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..90ddc06b95e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu May 4 20:11:22 UTC 2017
+pkgbase = emacs-py-autopep8
+ pkgdesc = py-autopep8.el integrates autopep8 into Emacs.
+ pkgver = 2016.1
+ pkgrel = 1
+ url = https://github.com/paetzke/py-autopep8.el
+ install = emacs-py-autopep8.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ depends = python-autopep8-git
+ source = emacs-py-autopep8-2016.1.tar.gz::https://github.com/paetzke/py-autopep8.el/archive/v2016.1.tar.gz
+ sha256sums = 36b17f3fa9998bdba38cf75506d628f433ac9baf52c93c78d7f54cdc3a2ba398
+
+pkgname = emacs-py-autopep8
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1911fff090f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=py-autopep8.el
+_pkgmaintainer=paetzke
+_pkgdestdirname=py-autopep8
+_versionprefix=v
+pkgver=2016.1
+pkgrel=1
+pkgdesc="py-autopep8.el integrates autopep8 into Emacs."
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+license=('GPL3')
+depends=('emacs' 'python-autopep8-git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
+sha256sums=('36b17f3fa9998bdba38cf75506d628f433ac9baf52c93c78d7f54cdc3a2ba398')
+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-py-autopep8.install b/emacs-py-autopep8.install
new file mode 100644
index 00000000000..17c9f631420
--- /dev/null
+++ b/emacs-py-autopep8.install
@@ -0,0 +1,18 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'pcap-mode)
+
+==> Or, with use-package:
+
+(use-package pcap-mode)
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}