diff options
Diffstat (limited to '~xihh')
-rw-r--r-- | ~xihh/blast/PKGBUILD | 31 | ||||
-rw-r--r-- | ~xihh/contrafold/PKGBUILD | 23 | ||||
-rw-r--r-- | ~xihh/django-ajax-selects/PKGBUILD | 53 | ||||
-rw-r--r-- | ~xihh/gmime24/PKGBUILD | 35 | ||||
-rw-r--r-- | ~xihh/libtre/PKGBUILD | 47 | ||||
-rw-r--r-- | ~xihh/lyx-clasicthesis/PKGBUILD | 30 | ||||
-rw-r--r-- | ~xihh/muscle/LICENSE | 10 | ||||
-rw-r--r-- | ~xihh/muscle/PKGBUILD | 38 | ||||
-rw-r--r-- | ~xihh/notmuch-address/PKGBUILD | 58 | ||||
-rw-r--r-- | ~xihh/python2-apsw/LICENSE | 15 | ||||
-rw-r--r-- | ~xihh/python2-apsw/PKGBUILD | 23 | ||||
-rw-r--r-- | ~xihh/retroshare/PKGBUILD | 140 | ||||
-rw-r--r-- | ~xihh/retroshare/retroshare.desktop | 11 | ||||
-rw-r--r-- | ~xihh/retroshare/retroshare.install | 15 | ||||
-rw-r--r-- | ~xihh/retroshare/retroshare.sh | 1 | ||||
-rw-r--r-- | ~xihh/ugene/PKGBUILD | 29 | ||||
-rw-r--r-- | ~xihh/viennarna/PKGBUILD | 42 | ||||
-rw-r--r-- | ~xihh/viennarna/setup.py | 31 |
18 files changed, 632 insertions, 0 deletions
diff --git a/~xihh/blast/PKGBUILD b/~xihh/blast/PKGBUILD new file mode 100644 index 000000000..70ab81dcc --- /dev/null +++ b/~xihh/blast/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Joshua Haase <hahj87@gmail.com> +pkgname='blast' +pkgver=2.2.25 +pkgrel=1 +pkgdesc="Basic Local Alignment Search Tool: BLAST finds regions of similarity between biological sequences" +arch=('i686' 'x86_64' 'mips64el') +url="http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=BlastHome" +license=('custom:Public_Domain') +makedepends=() +depends=() +optdepends=() +source=("ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/$pkgver/ncbi-blast-$pkgver+-src.tar.gz") +md5sums=('01256b808e3af49a5087945b6a8c8293') + +build() { + cd "$srcdir/ncbi-blast-${pkgver}+-src/c++" + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/ncbi-blast-${pkgver}+-src/c++" + make -k check +} + +package() { + cd "$srcdir/ncbi-blast-${pkgver}+-src/c++" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/~xihh/contrafold/PKGBUILD b/~xihh/contrafold/PKGBUILD new file mode 100644 index 000000000..4cf9c1085 --- /dev/null +++ b/~xihh/contrafold/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgname=contrafold +pkgver=2_02 +pkgrel=1 +epoch= +pkgdesc="An RNA secondary structure folder." +arch=('i686' 'x86_64') +url="http://contra.stanford.edu/contrafold/" +license=('Custom:BSD3') +source=(http://contra.stanford.edu/contrafold/contrafold_v${pkgver}.tar.gz) +md5sums=('cea66c63df835fe7f790c7f49ce83ef3') + +build() { + cd "$srcdir/$pkgname/src" + # ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname/src" + make DESTDIR="$pkgdir/" install +} diff --git a/~xihh/django-ajax-selects/PKGBUILD b/~xihh/django-ajax-selects/PKGBUILD new file mode 100644 index 000000000..e0255e745 --- /dev/null +++ b/~xihh/django-ajax-selects/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@none> +pkgname=django-ajax-selects +pkgver=20120215 +pkgrel=1 +epoch= +pkgdesc="" +arch=('i686' 'x86_64' 'mips64el') +url="https://github.com/crucialfelix/django-ajax-selects" +license=('GPL') +groups=() +depends=('python2') +makedepends=('git') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) +install= +changelog= +source=() +md5sums=() +noextract=() +#generate with 'makepkg -g' + +_gitroot=git://github.com/crucialfelix/django-ajax-selects.git +_gitname=django-ajax-selects + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" +} + +package() { + cd "$srcdir/$_gitname-build" + python setup.py install --root="$pkgdir/" --optimize=1 +} diff --git a/~xihh/gmime24/PKGBUILD b/~xihh/gmime24/PKGBUILD new file mode 100644 index 000000000..d50f71c4d --- /dev/null +++ b/~xihh/gmime24/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 150770 2012-02-21 20:45:23Z ibiru $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Contributor: Ben <ben@benmazer.net> + +_pkgbase=gmime +pkgname=gmime24 +pkgver=2.4.32 +pkgrel=1 +pkgdesc="Core mime parsing library" +arch=('i686' 'x86_64' 'mips64el') +license=('GPL') +url="http://spruce.sourceforge.net/gmime/" +depends=('glib2' 'gpgme' 'zlib') +makedepends=('gtk-sharp-2' 'pkgconfig') +[ "$CARCH" = "mips64el" ] && unset makedepends +options=('!libtool') +source=(http://ftp.gnome.org/pub/GNOME/sources/$_pkgbase/${pkgver%.*}/$_pkgbase-$pkgver.tar.xz) +sha256sums=('a0e8f3a1949e7281e92edc5dd6309a7ca34b6838c6acf7b7f1563a41b5ddd74b') + +build() { + # get rid of that .wapi errors in fakeroot + export MONO_SHARED_DIR="$srcdir/weird" + mkdir -p "$MONO_SHARED_DIR" + + cd "$srcdir/$_pkgbase-$pkgver" + + ./configure --prefix=/usr --enable-smime \ + --disable-static + make +} + +package() { + cd "$srcdir/$_pkgbase-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/~xihh/libtre/PKGBUILD b/~xihh/libtre/PKGBUILD new file mode 100644 index 000000000..ad111c45d --- /dev/null +++ b/~xihh/libtre/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgbase='libtre' +pkgname=('libtre' 'python2-tre') +pkgver=0.8.0 +pkgrel=1 +pkgdesc="The free and portable approximate regex matching library." +arch=('i686' 'x86_64' 'mips64el') +url="http://laurikari.net/tre/download/" +license=('custom:BSD2') +groups=() +depends=() +makedepends=('python' 'python2') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("http://laurikari.net/tre/tre-${pkgver}.tar.bz2") +md5sums=('b4d3232593dadf6746f4727bdda20b41') +noextract=() + +build() { + cd "$srcdir/tre-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/tre-$pkgver" + make -k check || true # some errors expected +} + +package_libtre() { + cd "$srcdir/tre-$pkgver" + make DESTDIR="$pkgdir/" install +} + +package_python2-tre() { + depends=('libtre') + cd "$srcdir/tre-$pkgver/python" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} diff --git a/~xihh/lyx-clasicthesis/PKGBUILD b/~xihh/lyx-clasicthesis/PKGBUILD new file mode 100644 index 000000000..8e63e2025 --- /dev/null +++ b/~xihh/lyx-clasicthesis/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgname=lyx-clasicthesis +pkgver=3.1-beta1 +pkgrel=1 +pkgdesc="A Classic Thesis Style for LaTeX and LyX" +arch=('any') +url="https://code.google.com/p/classicthesis/" +license=('GPL') +groups=() +depends=('lyx') +source=(https://code.google.com/p/classicthesis/downloads/detail?name=ClassicThesis-LyX-v${pkgver}.zip) +md5sums=('a437079a70466adadf8f7034e02ebd85') +noextract=() + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/~xihh/muscle/LICENSE b/~xihh/muscle/LICENSE new file mode 100644 index 000000000..e48f525fe --- /dev/null +++ b/~xihh/muscle/LICENSE @@ -0,0 +1,10 @@ +MUSCLE is public domain software + +The MUSCLE software, including object and source code and +documentation, is hereby donated to the public domain. + +Disclaimer of warranty + +THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/~xihh/muscle/PKGBUILD b/~xihh/muscle/PKGBUILD new file mode 100644 index 000000000..101e2e312 --- /dev/null +++ b/~xihh/muscle/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgname=muscle +pkgver=3.8.31 +pkgrel=1 +epoch= +pkgdesc="multiple sequence comparison by log-expectation" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.drive5.com/muscle/" +license=('custom:PublicDomain') +groups=() +depends=() +makedepends=('gcc-libs') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=(http://www.drive5.com/muscle/downloads${pkgver}/muscle${pkgver}_src.tar.gz LICENSE) +md5sums=('f767f00fd15f0c5db944d41936779e10' + '57cfb6975987af93c89977f084d53b72') +noextract=() + +build() { + cd "$srcdir/$pkgname$pkgver/src" + sed -i 's/ -msse2 -mfpmath=sse//' mk + make +} + +package() { + cd "$srcdir/$pkgname$pkgver/src" + install -D -m755 muscle "$pkgdir/usr/bin/muscle" + install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/~xihh/notmuch-address/PKGBUILD b/~xihh/notmuch-address/PKGBUILD new file mode 100644 index 000000000..908f40b22 --- /dev/null +++ b/~xihh/notmuch-address/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgname=notmuch-address +pkgver=20120201 +pkgrel=1 +epoch= +pkgdesc="Address completion for notmuch" +arch=('any') +url="" +license=('GPL') +groups=() +depends=(python2) +makedepends=(git) +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=() +md5sums=() +noextract=() +#generate with 'makepkg -g' +_gitroot=http://commonmeasure.org/~jkr/git/notmuch_addresses.git +_gitname=notmuch-adress + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + # + # BUILD HERE + # +} + +package() { + cd "$srcdir/$_gitname-build" + sed -i "s_#!/usr/bin/env python_#!/usr/bin/env python2_" notmuch_addresses.py + install -d $pkgdir/usr/bin + install -m755 notmuch_addresses.py $pkgdir/usr/bin/notmuch_addresses.py +}
\ No newline at end of file diff --git a/~xihh/python2-apsw/LICENSE b/~xihh/python2-apsw/LICENSE new file mode 100644 index 000000000..a0470b2a0 --- /dev/null +++ b/~xihh/python2-apsw/LICENSE @@ -0,0 +1,15 @@ +Copyright (C) 2004-2009 Roger Binns + +This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable +for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it +and redistribute it freely, subject to the following restrictions: + +- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If + you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not + required. + +- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + +- This notice may not be removed or altered from any source distribution. diff --git a/~xihh/python2-apsw/PKGBUILD b/~xihh/python2-apsw/PKGBUILD new file mode 100644 index 000000000..92ce6d309 --- /dev/null +++ b/~xihh/python2-apsw/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Linmiao Xu <linmiao.xu@gmail.com> +# Contributor: Juan Miguel Cejuela <jmcejuela@ashrentum.net> + +pkgname=python2-apsw +pkgver=3.7.9_r1 +pkgrel=1 +pkgdesc="Python wrapper for SQLite" +arch=('i686' 'x86_64' 'mips64el') +url="http://code.google.com/p/apsw/" +license=('MIT') +depends=('python2' 'sqlite3') +source=("http://apsw.googlecode.com/files/apsw-${pkgver//_/-}.zip" 'LICENSE') + +md5sums=('8188a05819553a7a9aad568db23850af' + 'efc704d50cb39441d00f9dc76cbe6665') + +build() { + cd $srcdir/apsw-${pkgver//_/-} + python2 setup.py install --root=$pkgdir/ + + install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + diff --git a/~xihh/retroshare/PKGBUILD b/~xihh/retroshare/PKGBUILD new file mode 100644 index 000000000..7c62e2254 --- /dev/null +++ b/~xihh/retroshare/PKGBUILD @@ -0,0 +1,140 @@ +# Maintainer: stqn +# Contributor: JHeaton <jheaton at archlinux dot us> +# Contributor: Tristero <tristero at online dot de> +# Contributor: funkyou + +pkgname=retroshare +pkgver=0.5.3b +pkgrel=5 +pkgdesc="Serverless encrypted instant messenger with filesharing, chatgroups, e-mail." +arch=('i686' 'x86_64' 'mips64el') +url="http://retroshare.sourceforge.net/" +license=('LGPL' 'GPL') +depends=('qt' 'libupnp' 'gpgme' 'libgnome-keyring' 'libxss') +install="${pkgname}.install" + +source=(http://sourceforge.net/projects/retroshare/files/RetroShare/${pkgver}/RetroShare-v${pkgver}.tar.gz \ + ${pkgname}.sh \ + ${pkgname}.install \ + ${pkgname}.desktop) + +sha256sums=('bd602a8a144597381659191561c19aaf9993eab0e0955cba8e6923b7efa30b0e' + '79d390eecea24ac51caa869fa8e0813abae092c75873527e180e0c965dac6f8e' + '5ba8c11c312b232b1935ee0918d020b049e4993cd8701e0446af4f8f637f4dce' + '70be00968f2477e368f75393f193e76f366fff2dadab869c855e92048060cf29') + +# Setting this to TRUE activates the compilation and packaging +# of the plugins which are not yet officially released. +# NOTE: doesn't work at the moment. +_USE_PLUGINS=FALSE + +# Setting this to TRUE activates the compilation and packaging +# of retroshare-nogui +_USE_NOGUI=FALSE + +build() { + cd ${srcdir} + + msg "Compiling libbitdht..." + cd ${srcdir}/trunk/libbitdht/src + qmake + make + + msg "Compiling libretroshare..." + cd ${srcdir}/trunk/libretroshare/src + qmake + make + + if [ "x$_USE_PLUGINS" == "xTRUE" ] ; then + msg "Compiling retroshare plugins..." + cd ${srcdir}/trunk/plugins + qmake + make + fi + + msg "Compiling retroshare-gui..." + cd ${srcdir}/trunk/retroshare-gui/src + # Add missing libs + sed -i "s/-lssl -lgpgme -lupnp -lixml -lXss -lgnome-keyring/-lssl -lcrypto -ldl -lX11 -lgpgme -lupnp -lixml -lXss -lgnome-keyring/" RetroShare.pro + qmake + make + + if [ "x$_USE_NOGUI" == "xTRUE" ] ; then + msg "Compiling retroshare-nogui..." + cd ${srcdir}/trunk/retroshare-nogui/src + # Add missing libs + sed -i "s/-lssl -lgpgme -lupnp -lixml -lgnome-keyring/-lssl -lcrypto -ldl -lgpgme -lupnp -lixml -lgnome-keyring/" retroshare-nogui.pro + qmake + make + fi +} + +package() { + + # --- Install Files --- + + msg "Install files to fakeroot-environment" + + # - Binaries + # Not installing the static libraries since there's no SDK anyway + #install -D -m 644 \ + # "${srcdir}/trunk/libbitdht/src/lib/libbitdht.a" \ + # "${pkgdir}/usr/lib/libbitdht.a" + #install -D -m 644 \ + # "${srcdir}/trunk/libretroshare/src/lib/libretroshare.a" \ + # "${pkgdir}/usr/lib/libretroshare.a" + + install -D -m 755 \ + "${srcdir}/trunk/retroshare-gui/src/RetroShare" \ + "${pkgdir}/opt/${pkgname}/${pkgname}" + + install -D -m 755 \ + "${pkgname}.sh" \ + "${pkgdir}/usr/bin/${pkgname}" + + if [ "x$_USE_NOGUI" == "xTRUE" ] ; then + install -D -m 755 \ + "${srcdir}/trunk/retroshare-nogui/src/retroshare-nogui" \ + "${pkgdir}/usr/bin/${pkgname}-nogui" + fi + + # plugins + + if [ "x$_USE_PLUGINS" == "xTRUE" ] ; then + # missing : LinksCloud + install -D -m 755 \ + "${srcdir}/trunk/plugins/bin/libcalendar_plugin.so" \ + "${pkgdir}/usr/lib/retroshare/plugins/libcalendar_plugin.so" + install -D -m 755 \ + "${srcdir}/trunk/plugins/bin/libpuzzle_plugin.so" \ + "${pkgdir}/usr/lib/retroshare/plugins/libpuzzle_plugin.so" + install -D -m 755 \ + "${srcdir}/trunk/plugins/bin/libqcheckers_plugin.so" \ + "${pkgdir}/usr/lib/retroshare/plugins/libqcheckers_plugin.so" + install -D -m 755 \ + "${srcdir}/trunk/plugins/bin/libqdiagram_plugin.so" \ + "${pkgdir}/usr/lib/retroshare/plugins/libqdiagram_plugin.so" + fi + + # Style sheets + cp -r "${srcdir}/trunk/retroshare-gui/src/qss" "$pkgdir/opt/retroshare/" + chmod 755 "$pkgdir/opt/retroshare/qss" + + # Icons + #install -D -m 644 \ + # "${srcdir}/trunk/retroshare-gui/src/gui/images/retrosharelogo1.png" \ + # "${pkgdir}/usr/share/pixmaps/retroshare_blue.png" + install -D -m 644 \ + "${srcdir}/trunk/retroshare-gui/src/gui/images/retrosharelogo2.png" \ + "${pkgdir}/usr/share/pixmaps/retroshare.png" + + # Desktop File + install -D -m 644 \ + "${srcdir}/${pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + # bdboot (needed to bootstrap the DHT) + install -D -m 644 \ + "${srcdir}/trunk/libbitdht/src/bitdht/bdboot.txt" \ + "${pkgdir}/usr/share/RetroShare/bdboot.txt" +} diff --git a/~xihh/retroshare/retroshare.desktop b/~xihh/retroshare/retroshare.desktop new file mode 100644 index 000000000..0c3f56180 --- /dev/null +++ b/~xihh/retroshare/retroshare.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=RetroShare +GenericName=Sharing Network +Comment=Secure Communication with Your Friends +Icon=/usr/share/pixmaps/retroshare.png +Exec=/usr/bin/retroshare +Terminal=false +StartupNotify=true +Categories=Network;InstantMessaging;FileTransfer;Chat;Email; diff --git a/~xihh/retroshare/retroshare.install b/~xihh/retroshare/retroshare.install new file mode 100644 index 000000000..e406a579e --- /dev/null +++ b/~xihh/retroshare/retroshare.install @@ -0,0 +1,15 @@ +post_install() { + # Update Desktop DB + if [ "x`which update-desktop-database 2>/dev/null`" != "x" ]; then + echo "Update desktop database..." + update-desktop-database -q ; + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/~xihh/retroshare/retroshare.sh b/~xihh/retroshare/retroshare.sh new file mode 100644 index 000000000..1204e497d --- /dev/null +++ b/~xihh/retroshare/retroshare.sh @@ -0,0 +1 @@ +cd /opt/retroshare && ./retroshare $* diff --git a/~xihh/ugene/PKGBUILD b/~xihh/ugene/PKGBUILD new file mode 100644 index 000000000..24ebac2bb --- /dev/null +++ b/~xihh/ugene/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: bmpvieira <mail AT bmpvieira DOT com> +pkgname=ugene +pkgver=1.9.3 +pkgrel=2 +pkgdesc="A free cross-platform genome analysis suite." +arch=('i686' 'x86_64' 'mips64el') +url="http://ugene.unipro.ru/" +license=('GPL') +depends=('qt' 'mesa') +source=(${url}downloads/$pkgname-$pkgver.tar.gz) +md5sums=('6ba5ff1bed47d928feb04ec15565c2b6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + case "$CARCH" in + "i686") + qmake PREFIX=/usr -r ;; + "x86_64"|"mips64el") + qmake CONFIG+=x64 PREFIX=/usr -r ;; + esac + make release || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir" install || return 1 +} + +# vim:set ts=2 sw=2 et: diff --git a/~xihh/viennarna/PKGBUILD b/~xihh/viennarna/PKGBUILD new file mode 100644 index 000000000..37de53d11 --- /dev/null +++ b/~xihh/viennarna/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgbase='viennarna' +pkgname=('viennarna' 'python2-viennarna') +pkgver=1.8.5 +pkgrel=1 +pkgdesc="RNA Secondary Structure Prediction and Comparison" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.tbi.univie.ac.at/RNA/" +makedepends=('python2' 'swig') +license=('Custom:BSD3') +source=("setup.py" + "http://www.tbi.univie.ac.at/RNA/ViennaRNA-${pkgver}.tar.gz") +md5sums=('d006ef9bb878aea6c184afa89986788e' + 'cd70d63cc1be928a5f0973bd6c211e96') + +build() { + cd "$srcdir/ViennaRNA-$pkgver" + ./configure --prefix=/usr --without-forester + make +} + +package_viennarna() { + cd "$srcdir/ViennaRNA-$pkgver" + make DESTDIR="$pkgdir/" install +} + +package_python2-viennarna() { + depends=('python2') + options=(!emptydirs) + + mkdir -p "$srcdir/ViennaRNA-$pkgver/Python" + cp -r $srcdir/ViennaRNA-$pkgver/Perl/*.i "$srcdir/setup.py" \ + "$srcdir/ViennaRNA-$pkgver/Python" + + cd "$srcdir/ViennaRNA-$pkgver/Python" + + swig -python RNA.i + + python2 setup.py install --root="$pkgdir/" --optimize=1 + +} diff --git a/~xihh/viennarna/setup.py b/~xihh/viennarna/setup.py new file mode 100644 index 000000000..00ac0a28d --- /dev/null +++ b/~xihh/viennarna/setup.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +from distutils.core import setup, Extension +import os +import sys + +old_filename = os.path.join(os.path.curdir, "RNA.py") +new_filename = os.path.join(os.path.curdir, "__init__.py") +if os.path.exists(old_filename): + os.rename(old_filename, new_filename) + +extra_link_args = [] +if sys.platform != 'darwin': + extra_link_args.append('-s') + +extension = Extension("_RNA", + ["RNA_wrap.c"], + libraries=['RNA'], + library_dirs=['lib'], + extra_link_args=extra_link_args + ) + +setup(name="RNA", + version="1.8.5", + description="Vienna RNA", + author="Ivo Hofacker, Institute for Theoretical Chemistry, University of Vienna", + url="http://www.tbi.univie.ac.at/RNA/", + package_dir = {'vienna': os.path.curdir}, + packages = ['vienna'], + ext_modules=[extension], + ) |