[arch-commits] Commit in mujs/repos/community-x86_64 (4 files)

Daniel Bermond dbermond at archlinux.org
Thu May 14 17:21:17 UTC 2020


    Date: Thursday, May 14, 2020 @ 17:21:16
  Author: dbermond
Revision: 627949

archrelease: copy trunk to community-x86_64

Added:
  mujs/repos/community-x86_64/010-mujs-use-arch-flags.patch
    (from rev 627948, mujs/trunk/010-mujs-use-arch-flags.patch)
  mujs/repos/community-x86_64/PKGBUILD
    (from rev 627948, mujs/trunk/PKGBUILD)
Deleted:
  mujs/repos/community-x86_64/010-mujs-use-arch-flags.patch
  mujs/repos/community-x86_64/PKGBUILD

-------------------------------+
 010-mujs-use-arch-flags.patch |   67 +++++++++++++++++++++++++++-------------
 PKGBUILD                      |   59 ++++++++++++++++-------------------
 2 files changed, 74 insertions(+), 52 deletions(-)

Deleted: 010-mujs-use-arch-flags.patch
===================================================================
--- 010-mujs-use-arch-flags.patch	2020-05-14 17:20:48 UTC (rev 627948)
+++ 010-mujs-use-arch-flags.patch	2020-05-14 17:21:16 UTC (rev 627949)
@@ -1,21 +0,0 @@
-diff -Naurp a/Makefile b/Makefile
---- a/Makefile	2018-09-11 10:47:31.000000000 +0000
-+++ b/Makefile	2018-12-16 20:19:17.793566976 +0000
-@@ -15,7 +15,7 @@ endif
- 
- # Compiler flags for various configurations:
- 
--CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
-+CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
- 
- ifeq "$(CC)" "clang"
-   CFLAGS += -Wunreachable-code
-@@ -78,7 +78,7 @@ $(OUT)/libmujs.a: $(OUT)/libmujs.o
- 
- $(OUT)/libmujs.so: one.c $(HDRS)
- 	@ mkdir -p $(dir $@)
--	$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -lm
-+	$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $< -lm
- 
- $(OUT)/mujs: $(OUT)/libmujs.o $(OUT)/main.o
- 	@ mkdir -p $(dir $@)

Copied: mujs/repos/community-x86_64/010-mujs-use-arch-flags.patch (from rev 627948, mujs/trunk/010-mujs-use-arch-flags.patch)
===================================================================
--- 010-mujs-use-arch-flags.patch	                        (rev 0)
+++ 010-mujs-use-arch-flags.patch	2020-05-14 17:21:16 UTC (rev 627949)
@@ -0,0 +1,46 @@
+diff --git a/Makefile b/Makefile
+index eacdc49..7b24457 100644
+--- a/Makefile
++++ b/Makefile
+@@ -15,7 +15,7 @@ endif
+ 
+ # Compiler flags for various configurations:
+ 
+-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
+ 
+ ifeq "$(CC)" "clang"
+   CFLAGS += -Wunreachable-code
+@@ -30,9 +30,6 @@ ifeq "$(build)" "debug"
+ else ifeq "$(build)" "sanitize"
+   CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
+   LDFLAGS += -fsanitize=address
+-else
+-  CFLAGS += -Os
+-  LDFLAGS += -Wl,-s
+ endif
+ 
+ ifeq "$(HAVE_READLINE)" "yes"
+@@ -67,11 +64,11 @@ jsdump.c: astnames.h opnames.h
+ 
+ $(OUT)/%.o: %.c $(HDRS)
+ 	@ mkdir -p $(dir $@)
+-	$(CC) $(CFLAGS) -o $@ -c $<
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+ 
+ $(OUT)/libmujs.o: one.c $(HDRS)
+ 	@ mkdir -p $(dir $@)
+-	$(CC) $(CFLAGS) -o $@ -c $<
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+ 
+ $(OUT)/libmujs.a: $(OUT)/libmujs.o
+ 	@ mkdir -p $(dir $@)
+@@ -79,7 +76,7 @@ $(OUT)/libmujs.a: $(OUT)/libmujs.o
+ 
+ $(OUT)/libmujs.so: one.c $(HDRS)
+ 	@ mkdir -p $(dir $@)
+-	$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -lm
++	$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $< -lm
+ 
+ $(OUT)/mujs: $(OUT)/libmujs.o $(OUT)/main.o
+ 	@ mkdir -p $(dir $@)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-14 17:20:48 UTC (rev 627948)
+++ PKGBUILD	2020-05-14 17:21:16 UTC (rev 627949)
@@ -1,31 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-pkgname=mujs
-pkgver=1.0.6
-pkgrel=1
-pkgdesc='An embeddable Javascript interpreter in C'
-arch=('x86_64')
-url='https://mujs.com/'
-license=('ISC')
-depends=('readline')
-source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ccxvii/mujs/archive/${pkgver}.tar.gz"
-        '010-mujs-use-arch-flags.patch')
-sha256sums=('a444d8ea22b18eff89acbc7f9e45cc95e5b63b30ae8f4b8000b858cd17006f2d'
-            '051c8a8727f4ff2816e9c060fbe969b7d1e8b9e2c07d704e809c24ff4394f0f4')
-
-prepare() {
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-mujs-use-arch-flags.patch"
-}
-
-build() {
-    make -C "${pkgname}-${pkgver}" release
-}
-
-package() {
-    mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
-    
-    make -C "${pkgname}-${pkgver}" DESTDIR="$pkgdir" prefix='/usr' install-shared
-    
-    install -D -m644 "${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/mujs/LICENSE"
-    install    -m644 "${pkgname}-${pkgver}/docs/"*  "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: mujs/repos/community-x86_64/PKGBUILD (from rev 627948, mujs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-14 17:21:16 UTC (rev 627949)
@@ -0,0 +1,28 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=mujs
+pkgver=1.0.7
+pkgrel=1
+pkgdesc='An embeddable Javascript interpreter in C'
+arch=('x86_64')
+url='https://mujs.com/'
+license=('ISC')
+depends=('readline')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ccxvii/mujs/archive/${pkgver}.tar.gz"
+        '010-mujs-use-arch-flags.patch')
+sha256sums=('9081244e070381300acaa5bf306a8b8b6f6231932ef4dca122992d3f6d243446'
+            '93ad3ba48675cf9da33a764742c8188a6b32a27ad4d88f2507252f9ddcd13e37')
+
+prepare() {
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-mujs-use-arch-flags.patch"
+}
+
+build() {
+    make -C "${pkgname}-${pkgver}" release
+}
+
+package() {
+    make -C "${pkgname}-${pkgver}" DESTDIR="$pkgdir" prefix='/usr' install-shared
+    install -D -m644 "${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/mujs/LICENSE"
+    install -D -m644 "${pkgname}-${pkgver}/docs/"* -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list