blob: 8cbe9863f5ce8ec8ffe1a161190fe509055adfae (
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
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgdesc='Small and embeddable JavaScript engine'
pkgname=quickjs
pkgver=2020.04.12
pkgrel=1
url='https://bellard.org/quickjs'
depends=(gcc-libs)
arch=(x86_64)
options=(!strip)
license=(custom:MIT)
_pv="${pkgname}-${pkgver//./-}"
source=("${url}/${_pv}.tar.xz")
sha512sums=('ed15bb159fa05a7c7749e34f346d426803adf34f1ee83eb23c1a9acce037402537fb52ff0c54135da13d7908a71043eb00b5688fe13488eca356a0713d4a65a3')
prepare () {
cat >> "${_pv}/Makefile" <<-EOF
CFLAGS += ${CFLAGS}
LDFLAGS += ${LDFLAGS}
EOF
}
build () {
make -C "${_pv}" prefix=/usr
}
package () {
make -C "${_pv}" prefix="${pkgdir}/usr" install
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${_pv}"/doc/*.*
# Fixup permissions
chmod 644 "${pkgdir}"/usr/lib/quickjs/*.a
}
|