changeset 750:4b0cb6b86f6a

crypto/gcr: initial import, closes #1263
author David Demelier <markand@malikania.fr>
date Wed, 07 Aug 2019 20:37:00 +0200
parents e4606c2f3347
children d5ffd41f8010
files crypto/gcr/gcr.sh crypto/gcr/gcr.sha1
diffstat 2 files changed, 94 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/gcr/gcr.sh	Wed Aug 07 20:37:00 2019 +0200
@@ -0,0 +1,93 @@
+#!/bin/sh
+#
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+PKGNAME=gcr
+PKGVERSION=3.33.4
+PKGREVISION=1
+PKGLICENSE="LGPLv20"
+PKGSUMMARY="library for displaying certificates and crypto UI"
+PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/${PKGVERSION%.*}/$PKGNAME-$PKGVERSION.tar.xz"
+PKGDEPENDS="lib/glib"
+PKGOPTIONS="GTK INTROSPECTION NLS VALA"
+
+: ${CHOST:=$(uname -m)-linux-musl}
+: ${CBUILD:=$(uname -m)-linux-musl}
+: ${CC:=clang}
+: ${CFLAGS:=-O2}
+: ${CXX:=clang++}
+: ${CXXFLAGS:=-O2}
+: ${LDFLAGS:=}
+: ${LIBS:=}
+: ${GTK:=yes}
+: ${INTROSPECTION:=yes}
+: ${NLS:=yes}
+: ${VALA:=yes}
+
+if [ "$GTK" = "yes" ]; then
+	PKGDEPENDS="graphics/gtk $PKGDEPENDS"
+	with_gtk="--with-gtk"
+else
+	with_gtk="--without-gtk"
+fi
+
+if [ "$INTROSPECTION" = "yes" ]; then
+	PKGDEPENDS="dev/gobject-introspection:build text/libxslt $PKGDEPENDS"
+	with_introspection="--enable-introspection"
+else
+	with_introspection="--disable-introspection"
+fi
+
+if [ "$NLS" = "yes" ]; then
+	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
+	with_nls="--enable-nls"
+else
+	with_nls="--disable-nls"
+fi
+
+if [ "$VALA" = "yes" ]; then
+	PKGDEPENDS="lang/vala $PKGDEPENDS"
+	with_vala="--enable-vala"
+else
+	with_vala="--disable-vala"
+fi
+
+build()
+{
+	rm -rf $PKGNAME-$PKGVERSION
+	tar xvf $PKGNAME-$PKGVERSION.tar.xz
+	cd $PKGNAME-$PKGVERSION
+
+	CC="$CC" \
+	CFLAGS="$CFLAGS" \
+	CXX="$CXX" \
+	CXXFLAGS="$CXXFLAGS" \
+	LDFLAGS="$LDFLAGS" \
+	LIBS="$LIBS" \
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix= \
+		$with_gtk \
+		$with_introspection \
+		$with_nls \
+		$with_vala
+	make
+	make install DESTDIR=$DESTDIR
+
+	cd ..
+	rm -rf $PKGNAME-$PKGVERSION
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/gcr/gcr.sha1	Wed Aug 07 20:37:00 2019 +0200
@@ -0,0 +1,1 @@
+330cfcf4a79cd56efc983bc1021c12a4438e2099  gcr-3.33.4.tar.xz