archrelease: copy trunk to extra-x86_64
[arch-packages.git] / re2c / repos / extra-x86_64 / PKGBUILD
blob9838af45cfad0eb4316004cf3d3441286a14a00f
1 # Maintainer:
2 # Contributor: nut543 <kfs1@online.no>
3 # Contributor: Dale Blount <dale@archlinux.org>
5 pkgname=re2c
6 pkgver=3.0
7 pkgrel=1
8 arch=(x86_64)
9 depends=(gcc-libs)
10 makedepends=(cmake)
11 checkdepends=(python)
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')
18 build() {
19   cd $pkgname-$pkgver
20   cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
21   cmake --build build
24 check() {
25   cd $pkgname-$pkgver
26   cmake --build build --target check
29 package() {
30   cd $pkgname-$pkgver
31   DESTDIR="$pkgdir" cmake --install build
32   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE