From 314ca5ef60d9d64ed8a66f4e7315434bc7dc0288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Tue, 2 Jun 2015 13:09:58 -0300 Subject: modglue: add new package to [pcr] --- pcr/modglue/PKGBUILD | 28 ++++++++++++++++++++++++++++ pcr/modglue/modglue.install | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pcr/modglue/PKGBUILD create mode 100644 pcr/modglue/modglue.install (limited to 'pcr/modglue') diff --git a/pcr/modglue/PKGBUILD b/pcr/modglue/PKGBUILD new file mode 100644 index 000000000..1fd5b3e35 --- /dev/null +++ b/pcr/modglue/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor (Arch): Dariusz 'quasi' Panchyrz +# Maintainer: André Silva + +pkgname=modglue +pkgver=1.19 +pkgrel=1 +pkgdesc="Modglue library for Cadabra computer algebra system (CAS)" +arch=('i686' 'x86_64') +url="http://cadabra.phi-sci.com/" +license=('GPL') +depends=('libsigc++') +install=$pkgname.install +source=(http://cadabra.phi-sci.com/$pkgname-$pkgver.tar.gz) +md5sums=('0d3d764c93f8c1464852f78d8493476b') + + +build() { + cd $srcdir/$pkgname-$pkgver + + ./configure --prefix=/usr + make -j1 +} + +package() { + cd $srcdir/$pkgname-$pkgver + + make -j1 DESTDIR=$pkgdir install +} diff --git a/pcr/modglue/modglue.install b/pcr/modglue/modglue.install new file mode 100644 index 000000000..55b1b3e9c --- /dev/null +++ b/pcr/modglue/modglue.install @@ -0,0 +1,35 @@ +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + ldconfig +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + +op=$1 +shift +$op $* -- cgit v1.2.2