summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen2015-06-09 16:31:48 +0800
committerAllen2015-06-09 16:31:48 +0800
commit286c79efe124d96a7ec4b968d21f6601cffbfac2 (patch)
treeb985dfc41081021c9b75379d96275470d7e97dca
downloadaur-286c79efe124d96a7ec4b968d21f6601cffbfac2.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD51
-rw-r--r--python27.patch11
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..90bf74f6240a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = meme
+ pkgdesc = The MEME suite provides tools for discovering and using protein and DNA sequence motifs
+ pkgver = 4.10.1_2
+ pkgrel = 2
+ url = http://meme-suite.org/
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = perl-html-template
+ depends = tcsh
+ depends = python2
+ depends = perl-xml-parser
+ depends = openmpi
+ source = http://meme-suite.org/meme-software/4.10.1/meme_4.10.1_2.tar.gz
+ source = python27.patch
+ sha1sums = 64d37d5cf86b1595f07425b8d2fcc9346e84abbc
+ sha1sums = 737b1ef7cb277412c2fff692a2e9b2a261e1b532
+
+pkgname = meme
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a3929bea0643
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+#Maintainer: allencch <allencch at hotmail dot com>
+#Contributor: Charles E. Vejnar
+pkgname=meme
+pkgver=4.10.1_2
+pkgrel=2
+pkgdesc="The MEME suite provides tools for discovering and using protein and DNA sequence motifs"
+arch=("i686" "x86_64")
+url="http://meme-suite.org/"
+license=("custom")
+depends=(perl-html-template tcsh python2 perl-xml-parser openmpi)
+source=("http://meme-suite.org/meme-software/4.10.1/${pkgname}_${pkgver}.tar.gz"
+ "python27.patch")
+sha1sums=("64d37d5cf86b1595f07425b8d2fcc9346e84abbc"
+ "737b1ef7cb277412c2fff692a2e9b2a261e1b532")
+
+prepare() {
+ cd $srcdir/${pkgname}_${pkgver%_*}
+
+ patch -p1 -i "${srcdir}/python27.patch"
+}
+
+build() {
+ cd $srcdir/${pkgname}_${pkgver%_*}
+
+ LDFLAGS="-Wl,--allow-multiple-definition" ./configure --prefix=/usr --program-prefix="meme-" --docdir='${prefix}'/usr/share/doc/meme --sysconfdir='${prefix}'/../etc/meme --with-python=/usr/bin/python2.7
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}_${pkgver%_*}"
+
+ make prefix="${pkgdir}/usr" install
+
+ # Move Python modules to a more standard location
+ install -dm755 ${pkgdir}/usr/lib/python2.7/site-packages
+ for fname in $(ls -1 ${pkgdir}/usr/lib/python2.7/); do
+ if [[ $fname = *.py ]]; then
+ mv ${pkgdir}/usr/lib/python2.7/$fname ${pkgdir}/usr/lib/python2.7/site-packages/${fname#meme-}
+ fi
+ done
+
+ # Rename Perl modules
+ for fname in $(ls -1 ${pkgdir}/usr/lib/perl/); do
+ if [[ $fname = meme-*.pm ]]; then
+ mv ${pkgdir}/usr/lib/perl/$fname ${pkgdir}/usr/lib/perl/${fname#meme-}
+ fi
+ done
+
+ sed -i -e "s/\(PROG => \)/\1'meme-'./g" "${pkgdir}/usr/bin/meme-meme-chip"
+}
diff --git a/python27.patch b/python27.patch
new file mode 100644
index 000000000000..2213a40543a2
--- /dev/null
+++ b/python27.patch
@@ -0,0 +1,11 @@
+--- a/scripts/Makefile.in
++++ b/scripts/Makefile.in
+@@ -548,7 +548,7 @@
+ hypergeometric.py \
+ sequence.py
+
+-pythonlibdir = $(libdir)/python
++pythonlibdir = $(libdir)/python2.7
+ pythonlib_SCRIPTS = \
+ $(BUILT_PYTHON_LIB) \
+ $(NORMAL_PYTHON_LIB) \ No newline at end of file