summaryrefslogtreecommitdiff
path: root/community/ginac
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-02 00:03:46 -0800
committerroot <root@rshg054.dnsready.net>2013-01-02 00:03:46 -0800
commitc288a123dd9113afec1a1cc6a2d62fde30307cfa (patch)
tree4aa9ebb03bceb7effc3804a7f2873a4dcdaacdab /community/ginac
parent26ac5932cb02318206fa6a528ed4bd82ad6af87c (diff)
Wed Jan 2 00:03:46 PST 2013
Diffstat (limited to 'community/ginac')
-rw-r--r--community/ginac/PKGBUILD33
-rw-r--r--community/ginac/ginac.install20
2 files changed, 35 insertions, 18 deletions
diff --git a/community/ginac/PKGBUILD b/community/ginac/PKGBUILD
index b812f13dc..01c21fd7a 100644
--- a/community/ginac/PKGBUILD
+++ b/community/ginac/PKGBUILD
@@ -1,36 +1,33 @@
-# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# $Id: PKGBUILD 174027 2013-01-02 02:57:17Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
pkgname=ginac
pkgver=1.6.2
-pkgrel=1
-pkgdesc='A library designed to allow the creation of integrated systems that embed symbolic manipulations.'
+pkgrel=2
+pkgdesc="C++ library for symbolic calculations"
arch=('i686' 'x86_64')
-url='http://www.ginac.de'
-license=('GPL')
+url="http://www.ginac.de/"
+license=("GPL")
depends=('cln')
makedepends=('transfig' 'doxygen' 'texlive-bin')
-options=('!libtool')
-source=("ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/ginac-${pkgver}.tar.bz2")
-md5sums=('4cfdd286ab0c32981ec1c9c779e87eb9')
+source=(http://www.ginac.de/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('c93913c4c543874b2ade4f0390030641be7e0c41')
+options=(!libtool)
+install=${pkgname}.install
build() {
- cd ginac-${pkgver}
-
- ./configure \
- --prefix=/usr
-
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --disable-static
make
}
check() {
- cd ginac-${pkgver}
-
+ cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
- cd ginac-${pkgver}
-
- make DESTDIR=${pkgdir} install
+ 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
+}