summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Harrison2014-11-12 15:01:35 -0500
committerMatt Harrison2015-06-09 13:49:52 -0400
commit749559da0af587330ab045b12245c74a10e3c7d4 (patch)
tree0ec841c8969444ace2f81bf9942e527c09e5416e
downloadaur-749559da0af587330ab045b12245c74a10e3c7d4.tar.gz
Add editorconfig-geany
-rw-r--r--.SRCINFO15
-rw-r--r--.editorconfig11
-rw-r--r--PKGBUILD28
-rw-r--r--README5
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e89f70a1ce5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = editorconfig-geany
+ pkgdesc = EditorConfig plugin for Geany
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://github.com/editorconfig/editorconfig-geany
+ arch = x86_64
+ arch = i686
+ license = BSD
+ depends = geany
+ depends = editorconfig-core-c
+ source = https://github.com/editorconfig/editorconfig-geany/archive/8d332f12ba58bd91ac2753c8008d0558799c3aaa.tar.gz
+ sha256sums = cbbe791bf1e43807e8ff31b76a9dbe6f58ba4d98cde44187adb2ad239567fb36
+
+pkgname = editorconfig-geany
+
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..c9f671fc84b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,11 @@
+# editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+tab_width = 2
+indent_style = spaces
+insert_final_newline = true
+trim_trailing_whitespace = true
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1369dc43f5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Matt Harrison <matt@mistbyte.com>
+# This PKGBUILD is maintained at https://github.com/matt-h/aur-pkgbuilds/tree/master/editorconfig-geany
+
+pkgname=editorconfig-geany
+pkgver=0.1
+pkgrel=1
+pkgdesc="EditorConfig plugin for Geany"
+arch=('x86_64' 'i686')
+url="https://github.com/editorconfig/editorconfig-geany"
+license=('BSD')
+depends=('geany' 'editorconfig-core-c')
+_gitversion="8d332f12ba58bd91ac2753c8008d0558799c3aaa"
+source=("https://github.com/editorconfig/editorconfig-geany/archive/$_gitversion.tar.gz")
+sha256sums=('cbbe791bf1e43807e8ff31b76a9dbe6f58ba4d98cde44187adb2ad239567fb36')
+
+build() {
+ cd "$srcdir/$pkgname-$_gitversion/"
+ make EDITORCONFIG_PREFIX=/usr
+ sed -n '/Copyright/,/SUCH DAMAGE./p' editorconfig-geany.c > "$srcdir/LICENSE"
+ sed -i 's/ \* //g' "$srcdir/LICENSE"
+}
+
+package() {
+ install -Dm644 "$srcdir/$pkgname-$_gitversion/$pkgname.so" "$pkgdir/usr/lib/geany/$pkgname.so"
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/README b/README
new file mode 100644
index 00000000000..0743ef2ce1f
--- /dev/null
+++ b/README
@@ -0,0 +1,5 @@
+PKGBUILD files for editorconfig-geany
+
+https://github.com/editorconfig/editorconfig-geany
+
+https://aur.archlinux.org/packages/editorconfig-geany/ \ No newline at end of file