From 62ac16c25030bfc3a6071c41e38efb376df66c2e Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Mon, 18 Aug 2008 17:53:37 +0000 Subject: [PATCH] libgpg-error 1.6 for Solaris 2.6/sparc --- libgpg-error/build.sh | 80 ++++++++++++++++++++++++++++++++++++++++ libgpg-error/meta/pkgdef | 26 +++++++++++++ 2 files changed, 106 insertions(+) create mode 100755 libgpg-error/build.sh create mode 100644 libgpg-error/meta/pkgdef diff --git a/libgpg-error/build.sh b/libgpg-error/build.sh new file mode 100755 index 0000000..cd2666b --- /dev/null +++ b/libgpg-error/build.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# This is a buildpkg build.sh script +# Copyright (C) 2003-2008 Tom G. Christensen + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Written by Tom G. Christensen . + +# build.sh helper functions +. ${BUILDPKG_BASE}/scripts/build.sh.functions +# +########################################################### +# Check the following 4 variables before running the script +topdir=libgpg-error +version=1.6 +pkgver=1 +source[0]=$topdir-$version.tar.bz2 +# If there are no patches, simply comment this +#patch[0]= + +# Source function library +. ${BUILDPKG_BASE}/scripts/buildpkg.functions + +# Global settings +export CPPFLAGS="-I$prefix/include" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" +configure_args="$configure_args --disable-static --disable-languages" + +reg prep +prep() +{ + generic_prep +} + +reg build +build() +{ + generic_build +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR + doc COPYING.LIB README THANKS AUTHORS NEWS +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/libgpg-error/meta/pkgdef b/libgpg-error/meta/pkgdef new file mode 100644 index 0000000..8d890fb --- /dev/null +++ b/libgpg-error/meta/pkgdef @@ -0,0 +1,26 @@ +[libgpg-error] +pkgname="${pkgprefix}lgpge" +name="$topdir - GnuPG component support library" +pkgcat="system" +pkgvendor="http://www.gnupg.org/" +pkgdesc="Library that defines common error values for all GnuPG components" +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_bindir/gpg-error +$_sharedir/locale/*/LC_MESSAGES/libgpg-error.mo +$_libdir/*.so.* + +[libgpg-error-devel] +pkgname="${pkgprefix}lgpged" +name="${topdir}-devel - Development support for libgpg-error" +pkgcat="system" +pkgvendor="http://www.gnupg.org/" +pkgdesc="Files needed for developing with libgpg-error" +pkgver="$pkgver" +files(-,root,bin) +$_bindir/gpg-error-config +$_libdir/*.so +$_includedir +$_sharedir/aclocal +