commit f5079eba4d22a70723ee296af4bd2069129051d3 Author: xhaa123 Date: Sat Nov 16 23:44:44 2024 +0800 re2c 3.1-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..8f10a58 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=re2c +pkgver=3.1 +pkgrel=1 +pkgdesc="A tool for generating C-based recognizers from regular expressions" +arch=('x86_64') +url="https://re2c.org" +license=('public domain') +depends=('gcc-libs') +source=(https://github.com/skvadrik/re2c/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=(087c44de0400fb15caafde09fd72edc7381e688a35ef505ee65e0e3d2fac688b) + +prepare() { + cd ${pkgname}-${pkgver} + + sh autogen.sh +} + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}