summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b5e6afb07e9a188796fe0e0b502ae5592dad6f6 (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: Hiroshi Hatake <cosmo0920.wp[at]gmail.com>

pkgname=snowball-c-git
pkgver=20211012.662.d29510a
pkgrel=2
pkgdesc="Snowball compiler and stemming algorithms ."
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/snowballstem/snowball"
license=('BSD-3')
source=("$pkgname"::"git+https://github.com/snowballstem/snowball#branch=master")
depends=('gcc')

pkgver () {
    _date=`date +"%Y%m%d"`
    cd "${srcdir}/${pkgname}"
    echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
}

build() {
    cd $srcdir/$pkgname
    make
}

package() {
    cd $srcdir/$pkgname
    install -Dm644 include/* $pkgdir/usr/include/libstemmer.h
    install -Dm755 snowball $pkgdir/usr/bin/snowball
    install -Dm755 stemwords $pkgdir/usr/bin/stemwords
}
sha1sums=('SKIP')