summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d126bbcf9d4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = editorconfig-core-c-git
+ pkgdesc = EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)
+ pkgver = 0.12.1.r13.g1f2c30e
+ pkgrel = 1
+ url = https://github.com/editorconfig/editorconfig-core-c
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake>=2.8.7
+ depends = pcre
+ provides = editorconfig-core-c
+ conflicts = editorconfig-core-c
+ source = git+https://github.com/editorconfig/editorconfig-core-c.git
+ sha256sums = SKIP
+
+pkgname = editorconfig-core-c-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dde20889faf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=editorconfig-core-c-git
+pkgver=0.12.1.r13.g1f2c30e
+pkgrel=1
+pkgdesc='EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)'
+url='https://github.com/editorconfig/editorconfig-core-c'
+arch=('i686' 'x86_64')
+license=('BSD')
+depends=('pcre')
+makedepends=('git' 'cmake>=2.8.7')
+provides=('editorconfig-core-c')
+conflicts=('editorconfig-core-c')
+source=('git+https://github.com/editorconfig/editorconfig-core-c.git')
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "editorconfig-core-c"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "editorconfig-core-c"
+
+ mkdir -p "build"
+}
+
+build() {
+ cd "editorconfig-core-c/build"
+
+ cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="lib" -DINSTALL_HTML_DOC=ON ../
+ make
+}
+
+package() {
+ cd "editorconfig-core-c/build"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "../LICENSE" "$pkgdir/usr/share/licenses/editorconfig-core-c/LICENSE"
+}