blob: 844d54dae2b22628e835989458b23bcb1ac22e59 (
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.7.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="8ff5465c9c335ea08ebb0d4a06569c991b9dc4661b63e10da6b123b882e7375e82291d6b883c2644902d68071a29ccc880dae8229447cebe710c910b54496c1d duktape-2.7.0.tar.xz
f7dc8853602233d67b69aff0ae32e9ed4c4a4888edfd27729174e240eca57a8f93a8b9db50e851091bed9cbed8d0028203a925c8424ea0c6f81a1dc046b9297d duktape.pc"
|