blob: c759b9c3127c023fcae5c567bbb5a62429a46581 (
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
35
36
37
38
|
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
# Contributor: kusakata <shohei atmark kusakata period com>
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
}
|