Date: Tuesday, December 27, 2022 @ 15:46:10
  Author: heftig
Revision: 1368847

archrelease: copy trunk to community-x86_64

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

------------+
 PKGBUILD   |   79 ++++++++++++++++++++++++++++++++---------------------------
 duktape.pc |   10 -------
 2 files changed, 44 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-27 15:40:13 UTC (rev 1368846)
+++ PKGBUILD    2022-12-27 15:46:10 UTC (rev 1368847)
@@ -1,35 +0,0 @@
-# Maintainer: Alexander F. Rødseth <[email protected]>
-
-pkgname=duktape
-pkgver=2.7.0
-pkgrel=4
-pkgdesc='Embeddable Javascript engine'
-url='https://duktape.org/'
-arch=(x86_64)
-license=(MIT)
-depends=(glibc)
-options=(debug)
-source=("https://duktape.org/$pkgname-$pkgver.tar.xz";)
-b2sums=('da5eea88758201177f32c5611a3757433ef1b0173d6430eff1f067abd7535f3e4b9c3717290fbd8475827a53f7a2a74818287a65e563f14e91761f5cd0fe30d5')
-
-# https://duktape.org/download.html
-md5sums=('b3200b02ab80125b694bae887d7c1ca6')
-
-_make() (
-  make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr "$@"
-)
-
-build() {
-  CFLAGS="$CFLAGS -DDUK_USE_FASTINT"
-
-  cd $pkgname-$pkgver
-  _make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  _make DESTDIR="$pkgdir" install
-  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt 
-}
-
-# getver: github.com/svaarala/duktape

Copied: duktape/repos/community-x86_64/PKGBUILD (from rev 1368846, 
duktape/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-12-27 15:46:10 UTC (rev 1368847)
@@ -0,0 +1,44 @@
+# Maintainer: Alexander F. Rødseth <[email protected]>
+
+pkgname=duktape
+pkgver=2.7.0
+pkgrel=5
+pkgdesc='Embeddable Javascript engine'
+url='https://duktape.org/'
+arch=(x86_64)
+license=(MIT)
+depends=(glibc)
+provides=(libduktape{,d}.so)
+options=(debug)
+source=("https://duktape.org/$pkgname-$pkgver.tar.xz";)
+b2sums=('da5eea88758201177f32c5611a3757433ef1b0173d6430eff1f067abd7535f3e4b9c3717290fbd8475827a53f7a2a74818287a65e563f14e91761f5cd0fe30d5')
+
+# https://duktape.org/download.html
+md5sums=('b3200b02ab80125b694bae887d7c1ca6')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # tools/configure.py needs Python 2
+  sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h
+
+  # Add missing NEEDED on libm.so
+  sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary
+}
+
+_make() (
+  make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr "$@"
+)
+
+build() {
+  cd $pkgname-$pkgver
+  _make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  _make DESTDIR="$pkgdir" install
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt 
+}
+
+# getver: github.com/svaarala/duktape

Deleted: duktape.pc
===================================================================
--- duktape.pc  2022-12-27 15:40:13 UTC (rev 1368846)
+++ duktape.pc  2022-12-27 15:46:10 UTC (rev 1368847)
@@ -1,10 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: duktape
-Description: Embeddable Javascript engine
-Version: 2.7.0
-Libs: -L${libdir} -lduktape
-Cflags: -I${includedir}

Reply via email to