summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlex Whitt2017-05-04 16:11:45 -0400
committerAlex Whitt2017-05-04 16:11:45 -0400
commitd7e4735d31f328d19308d164a8e3b25a92785d55 (patch)
tree3150849bc3e0e00a2e203221c8dee8ceced5e056 /PKGBUILD
downloadaur-d7e4735d31f328d19308d164a8e3b25a92785d55.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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}/"
+}