From c288a123dd9113afec1a1cc6a2d62fde30307cfa Mon Sep 17 00:00:00 2001 From: root Date: Wed, 2 Jan 2013 00:03:46 -0800 Subject: Wed Jan 2 00:03:46 PST 2013 --- community/ginac/PKGBUILD | 33 +++++++++++++++------------------ community/ginac/ginac.install | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+), 18 deletions(-) create mode 100644 community/ginac/ginac.install (limited to 'community') 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 # Contributor: Thomas Baechler 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 +} -- cgit v1.2.3-54-g00ecf