aboutsummaryrefslogtreecommitdiff
path: root/testing/duktape/APKBUILD
blob: c85dc51ab24543f9d8776c473e97047a662deaae (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
# Contributor: Cory Sanin <corysanin@outlook.com>
# Maintainer: Cory Sanin <corysanin@outlook.com>
pkgname=duktape
pkgver=2.5.0
pkgrel=0
pkgdesc="Embeddable Javascript engine with a focus on portability and compact footprint"
url="https://duktape.org"
arch="all"
license="MIT"
options="!check" # no tests in release archive
subpackages="$pkgname-dev"
source="https://duktape.org/duktape-$pkgver.tar.xz
	$pkgname.pc
	"

build() {
	make -f ./Makefile.sharedlibrary
}

check() {
	make check # update if tests are added
}

package() {
	make -f ./Makefile.sharedlibrary install INSTALL_PREFIX="$pkgdir/usr"
	mkdir -p "$pkgdir/usr/lib/pkgconfig/"
	sed "s/@VERSION@/$pkgver/" "$srcdir/$pkgname.pc" > "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
}

sha512sums="230e298a91cb48407d7c2a4b7c85cf9d53151d550e2fd7ba6cb8f9115682abce295fb78a3c3cd22b4812ce86944dd6d28c2b25c3845668a17232e3a08ea63837  duktape-2.5.0.tar.xz
f7dc8853602233d67b69aff0ae32e9ed4c4a4888edfd27729174e240eca57a8f93a8b9db50e851091bed9cbed8d0028203a925c8424ea0c6f81a1dc046b9297d  duktape.pc"