# Maintainer: Andrew Sun # Contributor: kusakata pkgname=libcleri pkgver=1.0.2 pkgrel=1 pkgdesc="C Left-Right Parser" url="https://github.com/transceptor-technology/libcleri" license=('MIT') arch=('x86_64') depends=('pcre2') source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/transceptor-technology/libcleri/archive/v${pkgver}.tar.gz" "makefile.targets.patch") sha256sums=('7180ed1f215c30fba601a150ef9eb7a54f6efd4cf8f130bb4c5ed86ac03bc9c5' 'c26ad2d1aea5cac6d536a93a55baeeb087c76946ddf549afe4f5e1bbe60388c9') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i ${srcdir}/makefile.targets.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" cd ./Release make all } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -d "${pkgdir}/usr/include" install -d "${pkgdir}/usr/lib" install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}" cd ./Release make INSTALL_PATH="${pkgdir}/usr" DESTDIR="/usr" install }