From 86f1b7fe7e05452bdc5d24adedf4c32736e25265 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Mon, 1 Jun 2020 02:47:55 +0000 Subject: community/duktape: move from testing --- community/duktape/APKBUILD | 31 +++++++++++++++++++++++++++++++ community/duktape/duktape.pc | 10 ++++++++++ testing/duktape/APKBUILD | 31 ------------------------------- testing/duktape/duktape.pc | 10 ---------- 4 files changed, 41 insertions(+), 41 deletions(-) create mode 100644 community/duktape/APKBUILD create mode 100644 community/duktape/duktape.pc delete mode 100644 testing/duktape/APKBUILD delete mode 100644 testing/duktape/duktape.pc diff --git a/community/duktape/APKBUILD b/community/duktape/APKBUILD new file mode 100644 index 0000000000..c85dc51ab2 --- /dev/null +++ b/community/duktape/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Cory Sanin +# Maintainer: Cory Sanin +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" diff --git a/community/duktape/duktape.pc b/community/duktape/duktape.pc new file mode 100644 index 0000000000..b7f115cfbe --- /dev/null +++ b/community/duktape/duktape.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: duktape +Description: Embeddable Javascript engine with a focus on portability and compact footprint +Version: @VERSION@ +Libs: -L${libdir} -lduktape +Cflags: -I${includedir} \ No newline at end of file diff --git a/testing/duktape/APKBUILD b/testing/duktape/APKBUILD deleted file mode 100644 index c85dc51ab2..0000000000 --- a/testing/duktape/APKBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Contributor: Cory Sanin -# Maintainer: Cory Sanin -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" diff --git a/testing/duktape/duktape.pc b/testing/duktape/duktape.pc deleted file mode 100644 index b7f115cfbe..0000000000 --- a/testing/duktape/duktape.pc +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: duktape -Description: Embeddable Javascript engine with a focus on portability and compact footprint -Version: @VERSION@ -Libs: -L${libdir} -lduktape -Cflags: -I${includedir} \ No newline at end of file -- cgit v1.2.3