aboutsummaryrefslogtreecommitdiffstats
path: root/community/duktape/APKBUILD
blob: 75c2854fa34808311ac28dd54a6977e7a6e24b48 (plain) (blame)
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.6.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="d72a2aaa05391fa243861aca6ca6082f91a08b9c5d60c7b246d35d7161532b0048bb67bd8fec7996c700ee317ac2bb52e528582682e5425b0431757d8b1c5be4  duktape-2.6.0.tar.xz
f7dc8853602233d67b69aff0ae32e9ed4c4a4888edfd27729174e240eca57a8f93a8b9db50e851091bed9cbed8d0028203a925c8424ea0c6f81a1dc046b9297d  duktape.pc"