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 /PKGBUILD | |
download | aur-edbe282eb255918ce2d113288933d1ca2f433e56.tar.gz |
newpkg: editorconfig-geany-git r18.9dce3bb
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
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" +} |