summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd1ee69b9f27b9617b4406e7911b2b8f23784c85 (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
31
32
# Maintainer: Daniel M. Capella <polycitizen@gmail.com>

pkgname=mwic
pkgver=0.7.4
pkgrel=1
pkgdesc='Misspelled Words In Context'
arch=('any')
url=https://github.com/jwilk/mwic
license=('MIT')
depends=('python-pyenchant' 'python-regex')
makedepends=('python-docutils')
checkdepends=('aspell-en' 'python-nose')
source=("mwic-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('c9ee668c2f0ef6a99dbdfb4b0560a69c408421e90c932f39b63cd11c97e35653f6615d134d9d4a9202f9cd7921b913813d6fca00b38bd29bf7c01cfa90c89963')

prepare() {
  cd mwic-$pkgver
  make -C doc
}

check() {
  cd mwic-$pkgver
  make test
}

package() {
  cd mwic-$pkgver
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/mwic/LICENSE
}

# vim:set ts=2 sw=2 et: