summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5340859803327069202009835027a83bc3cdee9 (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
33
34
35
# Maintainer: Shengyu Zhang <la@archlinuxcn.org>

pkgname=yanshi-git
_pkgname=yanshi
pkgver=0.57.9d86e63
pkgrel=1
pkgdesc='A regular language recognizer generater like Ragel, enhanced with features to approximate context-free grammars and substring grammars'
arch=('x86_64')
license=('Custom')
url="https://github.com/chaitin/yanshi"
makedepends=('git' 'make' 'gcc')
depends=('glibc' 'icu')
provides=('yanshi')
source=("git+https://github.com/chaitin/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

check() {
    cd ${_pkgname}
    # make unittest
}

build() {
    cd ${_pkgname}
    make build=release
}

package() {
    cd ${_pkgname}
    install -Dm755 release/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
}