summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatt Harrison2014-11-12 15:01:35 -0500
committerMatt Harrison2015-06-09 13:49:52 -0400
commit749559da0af587330ab045b12245c74a10e3c7d4 (patch)
tree0ec841c8969444ace2f81bf9942e527c09e5416e /PKGBUILD
downloadaur-749559da0af587330ab045b12245c74a10e3c7d4.tar.gz
Add editorconfig-geany
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..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: