[arch-commits] Commit in duktape/repos (3 files)

Antonio Rojas arojas at archlinux.org
Fri Dec 6 18:05:39 UTC 2019


    Date: Friday, December 6, 2019 @ 18:05:38
  Author: arojas
Revision: 535922

archrelease: copy trunk to community-staging-x86_64

Added:
  duktape/repos/community-staging-x86_64/
  duktape/repos/community-staging-x86_64/PKGBUILD
    (from rev 535921, duktape/trunk/PKGBUILD)
  duktape/repos/community-staging-x86_64/duktape.pc
    (from rev 535921, duktape/trunk/duktape.pc)

------------+
 PKGBUILD   |   39 +++++++++++++++++++++++++++++++++++++++
 duktape.pc |   10 ++++++++++
 2 files changed, 49 insertions(+)

Copied: duktape/repos/community-staging-x86_64/PKGBUILD (from rev 535921, duktape/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-06 18:05:38 UTC (rev 535922)
@@ -0,0 +1,39 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgname=duktape
+pkgver=2.5.0
+pkgrel=1
+pkgdesc='Embeddable Javascript engine'
+arch=(x86_64)
+url='https://duktape.org/'
+license=(MIT)
+makedepends=(setconf)
+source=("https://duktape.org/duktape-$pkgver.tar.xz"
+        duktape.pc)
+sha256sums=('83d411560a1cd36ea132bd81d8d9885efe9285c6bc6685c4b71e69a0c4329616'
+            'c23b6353a0a0b237470e7ed128402004622a3cfeac5fd0411ae6a42b18d2fe16')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  mv Makefile.sharedlibrary Makefile
+  sed 's/-Wall -Wextra/$(CFLAGS)/g' -i Makefile
+  setconf Makefile INSTALL_PREFIX="$pkgdir/usr"
+  setconf "$srcdir/duktape.pc" Version="$pkgver"
+}
+
+build() {
+  CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" make -C $pkgname-$pkgver
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  install -d "$pkgdir/usr/lib" "$pkgdir/usr/include"
+  make install
+  install -Dm644 "$srcdir/duktape.pc" "$pkgdir/usr/lib/pkgconfig/duktape.pc"
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: github.com/svaarala/duktape
+# vim: ts=2 sw=2 et:

Copied: duktape/repos/community-staging-x86_64/duktape.pc (from rev 535921, duktape/trunk/duktape.pc)
===================================================================
--- community-staging-x86_64/duktape.pc	                        (rev 0)
+++ community-staging-x86_64/duktape.pc	2019-12-06 18:05:38 UTC (rev 535922)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: duktape
+Description: Embeddable Javascript engine
+Version: 2.5.0
+Libs: -L${libdir} -lduktape
+Cflags: -I${includedir}



More information about the arch-commits mailing list