summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 473c7450f07d223e8fcfb1aa49f2e8d16394d930 (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
# Maintainer: shmilee <echo c2htaWxlZS56anVAZ21haWwuY29tCg==|base64 -d>

_pkgname=sregex
pkgname=sregex-git
pkgver=r222.c275d22
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="A non-backtracking NFA/DFA-based Perl-compatible regex engine matching on large data streams."
url="https://github.com/openresty/sregex"
depends=('glibc')
makedepends=('git')
provides=("$_pkgname")
license=('custom:BSD')
source=("git+https://github.com/openresty/sregex")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_pkgname"
  make PREFIX=/usr
}

package() {
  cd "$srcdir/$_pkgname"

  make PREFIX=/usr DESTDIR="$pkgdir" install 

  install -Dm644 "$srcdir/$_pkgname/LICENSE" \
      "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}