summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-05-30 16:40:12 -0400
committerAlex Whitt2017-05-30 16:40:12 -0400
commit36088aa154f7780f917e30e500af41822210148a (patch)
treebe84bcdf16a3a4f3062ea03900f1323749ccb134
downloadaur-36088aa154f7780f917e30e500af41822210148a.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
-rw-r--r--emacs-find-file-in-project.install18
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0fb0551db95
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Tue May 30 20:39:31 UTC 2017
+pkgbase = emacs-find-file-in-project
+ pkgdesc = Quick access to project files in Emacs
+ pkgver = 5.3.2
+ pkgrel = 1
+ url = https://github.com/technomancy/find-file-in-project
+ install = emacs-find-file-in-project.install
+ arch = any
+ license = GPL3
+ depends = emacs
+ depends = emacs-swiper
+ source = emacs-find-file-in-project-5.3.2.tar.gz::https://github.com/technomancy/find-file-in-project/archive/5.3.2.tar.gz
+ sha256sums = 371a5163e26abd500b350c41ea6c87700a47e6f1b4315cbe6cd3036acbb4f5bb
+
+pkgname = emacs-find-file-in-project
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef713cd5f95
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+
+_pkgsrcname=find-file-in-project
+_pkgmaintainer=technomancy
+_pkgdestdirname=find-file-in-project
+_versionprefix=
+pkgver=5.3.2
+pkgrel=1
+pkgdesc="Quick access to project files in Emacs"
+pkgname=emacs-${_pkgdestdirname}
+arch=(any)
+url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+license=('GPL3')
+depends=('emacs' 'emacs-swiper')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
+sha256sums=('371a5163e26abd500b350c41ea6c87700a47e6f1b4315cbe6cd3036acbb4f5bb')
+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-find-file-in-project.install b/emacs-find-file-in-project.install
new file mode 100644
index 00000000000..d9c8eba2e50
--- /dev/null
+++ b/emacs-find-file-in-project.install
@@ -0,0 +1,18 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the library:
+
+(require 'find-file-in-project)
+
+==> Or, with use-package:
+
+(use-package find-file-in-project)
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}