diff options
author | Chocobo1 | 2017-03-09 17:00:18 +0800 |
---|---|---|
committer | Chocobo1 | 2017-03-09 18:21:35 +0800 |
commit | edbe282eb255918ce2d113288933d1ca2f433e56 (patch) | |
tree | 6c91da140f7174f279b9aaf9ed5511ace6020192 | |
download | aur-edbe282eb255918ce2d113288933d1ca2f433e56.tar.gz |
newpkg: editorconfig-geany-git r18.9dce3bb
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a9e3d8678fcb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = editorconfig-geany-git + pkgdesc = EditorConfig plugin for Geany + pkgver = r18.9dce3bb + pkgrel = 1 + url = https://github.com/editorconfig/editorconfig-geany + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = geany + depends = editorconfig-core-c + source = git+https://github.com/editorconfig/editorconfig-geany.git + sha256sums = SKIP + +pkgname = editorconfig-geany-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..210fbe43c25c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=editorconfig-geany-git +pkgver=r18.9dce3bb +pkgrel=1 +pkgdesc='EditorConfig plugin for Geany' +url='https://github.com/editorconfig/editorconfig-geany' +arch=('i686' 'x86_64') +license=('GPL') +depends=('geany' 'editorconfig-core-c') +makedepends=('git') +source=('git+https://github.com/editorconfig/editorconfig-geany.git') +sha256sums=('SKIP') + + +pkgver() { + cd "editorconfig-geany" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "editorconfig-geany" + + make EDITORCONFIG_PREFIX=/usr +} + +package() { + cd "editorconfig-geany" + + install -Dm644 "editorconfig-geany.so" "$pkgdir/usr/lib/geany/editorconfig-geany.so" + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/editorconfig-geany/COPYING" +} |