Created
July 8, 2014 21:51
-
-
Save anonymous/4f570874a1854b08b73e to your computer and use it in GitHub Desktop.
Meme PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Contributor: allencch <allencch at hotmail dot com> | |
#Contributor: Charles E. Vejnar | |
pkgname=meme | |
pkgver=4.10.0_1 | |
pkgrel=1 | |
pkgdesc="The MEME suite provides tools for discovering and using protein and DNA sequence motifs" | |
arch=("i686" "x86_64") | |
url="http://meme.sdsc.edu/meme/intro.html" | |
license=("custom") | |
depends=(perl-html-template tcsh python2) | |
source=("http://ebi.edu.au/ftp/software/MEME/4.9.1/${pkgname}_${pkgver}.tar.gz" | |
"python27.patch") | |
sha1sums=("47db8717a61b9fb11cf6069ab33b17e1bbe58085" | |
"2d33af63abc2865abeb5f59b19da811667128732") | |
prepare() { | |
cd $srcdir/${pkgname}_${pkgver%_*} | |
patch -p1 -i "${srcdir}/python27.patch" | |
} | |
build() { | |
cd $srcdir/${pkgname}_${pkgver%_*} | |
./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 module 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment