[arch-commits] Commit in gc/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Jan de Groot jgc at archlinux.org
Fri Feb 16 22:20:32 UTC 2018


    Date: Friday, February 16, 2018 @ 22:20:32
  Author: jgc
Revision: 317170

archrelease: copy trunk to testing-x86_64

Added:
  gc/repos/testing-x86_64/
  gc/repos/testing-x86_64/PKGBUILD
    (from rev 317169, gc/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: gc/repos/testing-x86_64/PKGBUILD (from rev 317169, gc/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-02-16 22:20:32 UTC (rev 317170)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
+# Contributor: dorphell <dorphell at gmx.net>
+
+pkgname=gc
+pkgver=7.6.4
+pkgrel=1
+pkgdesc="A garbage collector for C and C++"
+arch=('x86_64')
+url="http://www.hboehm.info/gc/"
+license=('GPL')
+depends=('gcc-libs' 'libatomic_ops')
+source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('b94c1f2535f98354811ee644dccab6e84a0cf73e477ca03fb5a3758fb1fecd1c')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr --enable-cplusplus --disable-static
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  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