2 # Contributor: nut543 <kfs1@online.no>
3 # Contributor: Dale Blount <dale@archlinux.org>
12 pkgdesc='A tool for generating C-based recognizers from regular expressions'
13 url='https://re2c.org'
14 license=('public domain')
15 source=(re2c-$pkgver.tar.gz::https://github.com/skvadrik/re2c/archive/$pkgver.tar.gz)
16 sha1sums=('ce178a2f31ca4ba266be0ba6f1aa346ef764b799')
20 cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
26 cmake --build build --target check
31 DESTDIR="$pkgdir" cmake --install build
32 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE