summaryrefslogtreecommitdiff
path: root/pcr/modglue
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-02 13:09:58 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-02 16:35:28 -0300
commit314ca5ef60d9d64ed8a66f4e7315434bc7dc0288 (patch)
tree11df59a42f237ff98cd037fb93eec46de5753f6e /pcr/modglue
parent02cd0afb4dfe0e9772a95e4c2515578fcbe6bf69 (diff)
modglue: add new package to [pcr]
Diffstat (limited to 'pcr/modglue')
-rw-r--r--pcr/modglue/PKGBUILD28
-rw-r--r--pcr/modglue/modglue.install35
2 files changed, 63 insertions, 0 deletions
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 <quasi@aur.archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+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 $*