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

Jan Steffens heftig at archlinux.org
Thu Dec 28 07:25:08 UTC 2017


    Date: Thursday, December 28, 2017 @ 07:25:07
  Author: heftig
Revision: 313717

7.6.2-1

Modified:
  gc/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-28 07:16:19 UTC (rev 313716)
+++ PKGBUILD	2017-12-28 07:25:07 UTC (rev 313717)
@@ -3,7 +3,7 @@
 # Contributor: dorphell <dorphell at gmx.net>
 
 pkgname=gc
-pkgver=7.6.0
+pkgver=7.6.2
 pkgrel=1
 pkgdesc="A garbage collector for C and C++"
 arch=('x86_64')
@@ -10,21 +10,16 @@
 url="http://www.hboehm.info/gc/"
 license=('GPL')
 depends=('gcc-libs' 'libatomic_ops')
-source=(http://www.hboehm.info/gc/gc_source/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('a14a28b1129be90e55cd6f71127ffc5594e1091d5d54131528c24cd0c03b7d90')
+source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('bd112005563d787675163b5afff02c364fc8deb13a99c03f4e80fdf6608ad41e')
 
 prepare() {
   cd ${pkgname}-${pkgver}
-
-  sed -i 's#pkgdata#doc#' doc/doc.am
 }
 
 build() {
   cd ${pkgname}-${pkgver}
-  autoreconf -fi
-
-  #https://github.com/ivmai/bdwgc/issues/87
-  CXXFLAGS+=' -std=gnu++98' ./configure --prefix=/usr --enable-cplusplus --disable-static
+  ./configure --prefix=/usr --enable-cplusplus --disable-static
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
@@ -37,8 +32,6 @@
 package() {
   cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
-
-  sed -i -e 's/GC_MALLOC 1L/gc 3/' doc/gc.man
-  install -m755 -d "${pkgdir}/usr/share/man/man3"
-  install -m644 doc/gc.man "${pkgdir}/usr/share/man/man3/gc.3"
+  sed 's|GC_MALLOC 1L|gc 3|g' doc/gc.man |
+    install -Dm644 /dev/stdin "${pkgdir}/usr/share/man/man3/gc.3"
 }



More information about the arch-commits mailing list