diff options
author | scheckley | 2021-02-28 01:24:13 +0000 |
---|---|---|
committer | scheckley | 2021-02-28 01:24:13 +0000 |
commit | daa47737a5deb915d3aa5bdcb12f095a9c21c965 (patch) | |
tree | b014ef8369bdaf5b30c497d9d6f00f705df2e2d2 | |
download | aur-daa47737a5deb915d3aa5bdcb12f095a9c21c965.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | copasi-desktop.tar.gz | bin | 0 -> 23907 bytes | |||
-rw-r--r-- | copasi.install | 35 |
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fb0c353ebfea --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = copasi-bin + pkgdesc = COmplex PAthway SImulator for analysis of biochemical networks and their dynamics + pkgver = 4.30.240 + pkgrel = 1 + url = http://www.copasi.org/ + install = copasi.install + arch = i686 + arch = x86_64 + license = Artistic 2.0 + depends = shared-mime-info + depends = fontconfig + noextract = copasi-bin-4.30.240.tar.gz + source = copasi-desktop.tar.gz + sha256sums = 9576e4a9b2c7e74c91d0e1c0b39fcb20531e8fb4f21c5e8ac95b048609702923 + source_i686 = copasi-bin-4.30.240.tar.gz::https://github.com/copasi/COPASI/releases/download/Build-240/COPASI-4.30.240-Linux-32bit.tar.gz + sha256sums_i686 = d9fa077c260dfafec94c4c205267f61fc12bd0dcaa429bb26f31d2e704e18ce3 + source_x86_64 = copasi-bin-4.30.240.tar.gz::https://github.com/copasi/COPASI/releases/download/Build-240/COPASI-4.30.240-Linux-64bit.tar.gz + sha256sums_x86_64 = d9fa077c260dfafec94c4c205267f61fc12bd0dcaa429bb26f31d2e704e18ce3 + +pkgname = copasi-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be0e1f910839 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Stephen Checkley <scheckley at gmail dot com> +pkgname=copasi-bin +pkgver=4.30.240 +_pkgver=${pkgver##*.} +pkgrel=1 +pkgdesc="COmplex PAthway SImulator for analysis of biochemical networks and their dynamics" +arch=('i686' 'x86_64') +url="http://www.copasi.org/" +license=('Artistic 2.0') +depends=('shared-mime-info' 'fontconfig') +source=('copasi-desktop.tar.gz') +install=copasi.install +noextract=($pkgname-$pkgver.tar.gz) +_source=https://github.com/copasi/COPASI/releases/download/Build-$_pkgver +source_i686=($pkgname-$pkgver.tar.gz::$_source/COPASI-$pkgver-Linux-32bit.tar.gz) +source_x86_64=($pkgname-$pkgver.tar.gz::$_source/COPASI-$pkgver-Linux-64bit.tar.gz) +sha256sums=('9576e4a9b2c7e74c91d0e1c0b39fcb20531e8fb4f21c5e8ac95b048609702923') +sha256sums_i686=('d9fa077c260dfafec94c4c205267f61fc12bd0dcaa429bb26f31d2e704e18ce3') +sha256sums_x86_64=('d9fa077c260dfafec94c4c205267f61fc12bd0dcaa429bb26f31d2e704e18ce3') + +package() { + cd "$srcdir" + tar -xf $pkgname-$pkgver.tar.gz --strip=1 + + rm "$srcdir"/share/copasi/lib/libfreetype.so.6 + ln -s /usr/lib/libfreetype.so "$srcdir"/share/copasi/lib/ + ln -s /usr/lib/libfreetype.so.6 "$srcdir"/share/copasi/lib/ + + # install program files + install -d "$pkgdir"/usr/{bin,share} + install -m755 bin/* "$pkgdir"/usr/bin + cp -R share/copasi "$pkgdir"/usr/share/ + + # desktop integration... + cd "$srcdir"/copasi-desktop + install -Dm755 copasi.sh "$pkgdir/etc/profile.d/copasi.sh" + install -Dm644 copasi.desktop "$pkgdir/usr/share/applications/copasi.desktop" + install -Dm644 copasi.xml "$pkgdir/usr/share/mime/packages/copasi.xml" + install -d "$pkgdir/usr/share/icons/hicolor" + cp -R icons/* "$pkgdir/usr/share/icons/hicolor/" + # copasi starts CopasiUI after setting COPASIDIR environment variable + # useful for launching COPASI using the menu entry + install -Dm755 copasi "$pkgdir/usr/bin/copasi" +} diff --git a/copasi-desktop.tar.gz b/copasi-desktop.tar.gz Binary files differnew file mode 100644 index 000000000000..ad27ed39c939 --- /dev/null +++ b/copasi-desktop.tar.gz diff --git a/copasi.install b/copasi.install new file mode 100644 index 000000000000..db58bd1fb42a --- /dev/null +++ b/copasi.install @@ -0,0 +1,35 @@ +# utils function is based on virtualbox.install +utils() { + if [ -x usr/bin/update-mime-database ]; then + echo ">>> Updating Shared MIME-Info database..." + update-mime-database /usr/share/mime +# update-mime-database /usr/share/mime > /dev/null 2>&1 + fi + + if [ -x usr/bin/xdg-icon-resource ]; then + echo ">>> Updating desktop icon system..." + xdg-icon-resource forceupdate --theme hicolor +# xdg-icon-resource forceupdate --theme hicolor > /dev/null 2>&1 + fi + + if [ -x usr/bin/update-desktop-database ]; then + echo ">>> Updating MIME-desktop association cache database..." + update-desktop-database +# usr/bin/update-desktop-database -q + fi +} + +post_install() { + utils + echo ">>> COPASIDIR environment variable will be set by /etc/profile.d/copasi.sh" + echo ">>> You may have to relogin or source it." +} + +post_upgrade() { + utils +} + +post_remove() { + utils +} + |