aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1369dc43f5452b0a4f8befb24eda28151ee8b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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: