[arch-commits] Commit in cjs/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Fri Nov 27 06:10:15 UTC 2020


    Date: Friday, November 27, 2020 @ 06:10:15
  Author: eschwartz
Revision: 763974

upgpkg: cjs 4.8.0-1: upstream release

port to meson
port to mozjs 78

Modified:
  cjs/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++------------------------
 1 file changed, 17 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-27 06:07:24 UTC (rev 763973)
+++ PKGBUILD	2020-11-27 06:10:15 UTC (rev 763974)
@@ -3,47 +3,40 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=cjs
-pkgver=4.4.0
-pkgrel=2
+pkgver=4.8.0
+pkgrel=1
 pkgdesc="Javascript Bindings for Cinnamon"
 arch=('x86_64')
 url="https://github.com/linuxmint/${pkgname}"
 license=('GPL')
-depends=('gtk3' 'gobject-introspection-runtime' 'js52')
-makedepends=('autoconf-archive' 'gobject-introspection')
+depends=('gtk3' 'gobject-introspection-runtime' 'js78')
+makedepends=('meson' 'samurai' 'gobject-introspection')
 checkdepends=('xorg-server-xvfb')
 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha512sums=('3b2bdc55ab572713d6b6f92978522b290819656f64fef620659065ff5673a04a0585b83a1a0248116570ac1cfee4f54acc228f355c02aa4e0a2a13b59fbafed2')
-b2sums=('af276cd8f9ef0f66a6f4ab3e0072b485e33015e070bb796818907964df0696240b753f7a271bf45db788eb244e0cd1fb866f3b78798adf3ef8f9e76825fc4d74')
+sha512sums=('e5cff9f7790d2874fb1b743d823a799560c5fe82271f6cbff8b74baa70eec267fad9ac651258ee5c4de5dfce81964c73ca9a652ce3441791e44c34bcd8187770')
+b2sums=('6fea53cda72fc1e13618375d636b492d9e2cbc8130ff729376fbba7504e56fd5e1fa9b1330e2696a841b3400af04832f81febdfefc6730b43e3ccb7a41c46271')
 
-prepare() {
-    cd "${srcdir}"/${pkgname}-${pkgver}
-
-    autoreconf -fi
-}
-
 build() {
-    cd "${srcdir}"/${pkgname}-${pkgver}
+    mkdir -p "${srcdir}"/${pkgname}-${pkgver}/builddir
+    cd "${srcdir}"/${pkgname}-${pkgver}/builddir
 
-    ./configure --prefix=/usr \
-                --libexecdir=/usr/lib \
-                --disable-static
+    meson --prefix=/usr \
+          --libexecdir=/usr/lib \
+          -Dinstalled_tests=false \
+          ..
 
-    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
-    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-    make
+    samu
 }
 
 check() {
-    cd "${srcdir}"/${pkgname}-${pkgver}
+    cd "${srcdir}"/${pkgname}-${pkgver}/builddir
 
     # Needs a display
-    xvfb-run make -k check || :
+    xvfb-run meson test --print-errorlogs
 }
 
 package() {
-    cd "${srcdir}"/${pkgname}-${pkgver}
+    cd "${srcdir}"/${pkgname}-${pkgver}/builddir
 
-    make DESTDIR="${pkgdir}" install
+    DESTDIR="${pkgdir}" samu install
 }



More information about the arch-commits mailing list