summaryrefslogtreecommitdiff
path: root/community/ginac
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ginac
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ginac')
-rw-r--r--community/ginac/PKGBUILD37
-rw-r--r--community/ginac/ginac.install20
2 files changed, 57 insertions, 0 deletions
diff --git a/community/ginac/PKGBUILD b/community/ginac/PKGBUILD
new file mode 100644
index 000000000..26109b01b
--- /dev/null
+++ b/community/ginac/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 81849 2013-01-02 03:07:05Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Thomas Baechler <thomas@archlinux.org>
+
+pkgname=ginac
+pkgver=1.6.2
+pkgrel=2
+pkgdesc="C++ library for symbolic calculations"
+arch=('i686' 'x86_64')
+url='http://www.ginac.de/'
+license=('GPL')
+depends=('cln')
+makedepends=('transfig' 'doxygen' 'texlive-bin')
+source=(http://www.ginac.de/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('c93913c4c543874b2ade4f0390030641be7e0c41')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --disable-static
+
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/ginac/ginac.install b/community/ginac/ginac.install
new file mode 100644
index 000000000..3de7910d0
--- /dev/null
+++ b/community/ginac/ginac.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(ginac.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}