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

Daniel Bermond dbermond at archlinux.org
Wed Oct 7 16:29:22 UTC 2020


    Date: Wednesday, October 7, 2020 @ 16:29:22
  Author: dbermond
Revision: 720760

archrelease: copy trunk to community-x86_64

Added:
  mujs/repos/community-x86_64/010-mujs-use-arch-flags.patch
    (from rev 720759, mujs/trunk/010-mujs-use-arch-flags.patch)
  mujs/repos/community-x86_64/PKGBUILD
    (from rev 720759, 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 |   92 ++++++++++++++++++++--------------------
 PKGBUILD                      |   56 ++++++++++++------------
 2 files changed, 74 insertions(+), 74 deletions(-)

Deleted: 010-mujs-use-arch-flags.patch
===================================================================
--- 010-mujs-use-arch-flags.patch	2020-10-07 16:29:09 UTC (rev 720759)
+++ 010-mujs-use-arch-flags.patch	2020-10-07 16:29:22 UTC (rev 720760)
@@ -1,46 +0,0 @@
-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 $@)

Copied: mujs/repos/community-x86_64/010-mujs-use-arch-flags.patch (from rev 720759, mujs/trunk/010-mujs-use-arch-flags.patch)
===================================================================
--- 010-mujs-use-arch-flags.patch	                        (rev 0)
+++ 010-mujs-use-arch-flags.patch	2020-10-07 16:29:22 UTC (rev 720760)
@@ -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-10-07 16:29:09 UTC (rev 720759)
+++ PKGBUILD	2020-10-07 16:29:22 UTC (rev 720760)
@@ -1,28 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-pkgname=mujs
-pkgver=1.0.8
-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=('7687442844fbbe8814cdc2b1478fc991b32753d5e307e34cd7846fe69c1daf63'
-            '93ad3ba48675cf9da33a764742c8188a6b32a27ad4d88f2507252f9ddcd13e37')
-
-prepare() {
-    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-mujs-use-arch-flags.patch"
-}
-
-build() {
-    make -C "${pkgname}-${pkgver}" release shared
-}
-
-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}"
-}

Copied: mujs/repos/community-x86_64/PKGBUILD (from rev 720759, mujs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-07 16:29:22 UTC (rev 720760)
@@ -0,0 +1,28 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=mujs
+pkgver=1.0.9
+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=('32990e739403004c936e5c4de1b83a753129020804a0e13bb13ed46c75ea575f'
+            '93ad3ba48675cf9da33a764742c8188a6b32a27ad4d88f2507252f9ddcd13e37')
+
+prepare() {
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-mujs-use-arch-flags.patch"
+}
+
+build() {
+    make -C "${pkgname}-${pkgver}" release shared
+}
+
+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