summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53c4abf501cfa862bb31d647e5291f7de1383ee3 (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
29
30
# Maintainer: Mao Wtm <m@maowtm.org>
pkgname=misspell
pkgver=v0.3.4
pkgver() {
  cd "$pkgname-src"
  git describe | cut -d- -f1
}
pkgrel=1
pkgdesc="Correct commonly misspelled English words in source files"
arch=(any)
url="https://github.com/client9/misspell/"
license=('MIT')
makedepends=('go')
source=("$pkgname-src::git+https://github.com/client9/misspell.git#tag=$pkgver")
sha256sums=("SKIP")

build() {
  mkdir -p go/src/github.com/client9/
  cp -r $pkgname-src go/src/github.com/client9/$pkgname
  cd go
  export GOPATH=$(pwd)
  cd src/github.com/client9/$pkgname
  go get -v
  make install
}

package() {
  install -s -DT go/bin/misspell $pkgdir/usr/bin/misspell
}