summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82bf862c9f91d53210820b7412908de70c00fba7 (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: Jose Riha <jose1711 gmail com>
#
pkgname=pospell
pkgver='1.1'
pkgrel=2
pkgdesc="Spellcheck .po files containing reStructuredText translations"
url="https://github.com/AFPy/pospell"
depends=('python')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
        "https://github.com/AFPy/pospell/commit/c4feb4d25f23c3584959ba861267f669fbfcc98d.diff")
sha256sums=('622be800caf4b1c5c880d972f5fc91501ffc6194978d9006158e3da182eb5a78'
            '65ebc5bb0383d5f7374c177f3638e346071b8ab9f08aaf58f118cc5cc08aaae2')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  patch -i ../c4feb4d25f23c3584959ba861267f669fbfcc98d.diff
}
            
build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}