diff options
author | Alexander Minges | 2015-06-28 12:14:41 +0200 |
---|---|---|
committer | Alexander Minges | 2015-06-28 12:14:41 +0200 |
commit | a86ed619d57aeffb26f8995e23ddd45aa1163f5d (patch) | |
tree | dbcf175cd4ff88776e18501cf7406978f9af89d2 | |
download | aur-a86ed619d57aeffb26f8995e23ddd45aa1163f5d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | ssm-configure.ac.patch | 30 | ||||
-rw-r--r-- | ssm.pc.in | 12 |
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7c2f433bb56d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = libssm + pkgdesc = A C++ toolkit for superposition of macromolecules + pkgver = 1.4 + pkgrel = 1 + url = https://launchpad.net/ssm + arch = i686 + arch = x86_64 + license = LGPL + depends = mmdb2 + depends = libccp4 + replaces = ssmlib + source = ftp://ftp.ccp4.ac.uk/opensource/ssm-1.4.tar.gz + source = ssm-configure.ac.patch + source = ssm.pc.in + sha256sums = ea1a57d019bd69ab04e1b7c4faa2f8451584474a6fc16285c2211ef9f53b2704 + sha256sums = 271ec9165b4f5dd5e8ccc622056de2dee0582c8efa42ce8652d560b67d7fa8b4 + sha256sums = fd8c44c92c60768744840959c0caa6ccf53018a54f3b31263b5afe672e1d4a30 + +pkgname = libssm + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1f61803f3104 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Alexander Minges <alexander.minges@gmail.com> +pkgname=libssm +_pkgname=ssm +pkgver=1.4 +pkgrel=1 +pkgdesc="A C++ toolkit for superposition of macromolecules" +arch=('i686' 'x86_64') +url="https://launchpad.net/ssm" +license=('LGPL') +depends=('mmdb2' 'libccp4') +replaces=('ssmlib') +source=(ftp://ftp.ccp4.ac.uk/opensource/$_pkgname-$pkgver.tar.gz + ssm-configure.ac.patch + ssm.pc.in) +sha256sums=('ea1a57d019bd69ab04e1b7c4faa2f8451584474a6fc16285c2211ef9f53b2704' + '271ec9165b4f5dd5e8ccc622056de2dee0582c8efa42ce8652d560b67d7fa8b4' + 'fd8c44c92c60768744840959c0caa6ccf53018a54f3b31263b5afe672e1d4a30') + +build() { + cd "$srcdir/$_pkgname-$pkgver" + patch -Np0 -i "$srcdir/ssm-configure.ac.patch" + + cp $srcdir/ssm.pc.in ./ssm.pc.in + aclocal + libtoolize --automake --copy + autoconf + automake --copy --add-missing --gnu + ./configure --prefix=/usr \ + --with-mmdb=/usr \ + --enable-ccp4 \ + --enable-shared \ + --disable-static + make +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} diff --git a/ssm-configure.ac.patch b/ssm-configure.ac.patch new file mode 100644 index 000000000000..9d4bbc61f629 --- /dev/null +++ b/ssm-configure.ac.patch @@ -0,0 +1,30 @@ +--- configure.ac 2014-09-12 11:56:38.000000000 +0200 ++++ configure.ac.new 2014-09-26 12:30:06.449528612 +0200 +@@ -21,17 +21,19 @@ + AC_SEARCH_LIBS([cos], [m], [], [AC_MSG_ERROR([need math library])]) + + AC_LANG_PUSH([C++]) +-AC_CHECK_LIB(mmdb2, MMDB_CCIF_Init, :, +- AC_MSG_ERROR([mmdb2 library not found.])) +-AC_CHECK_HEADER(mmdb2/mmdb_manager.h, :, +- AC_MSG_ERROR([mmdb2 headers not found.])) ++# AC_CHECK_LIB(mmdb2, MMDB_CCIF_Init, :, ++# AC_MSG_ERROR([mmdb2 library not found.])) ++# AC_CHECK_HEADER(mmdb2/mmdb_manager.h, :, ++# AC_MSG_ERROR([mmdb2 headers not found.])) ++PKG_CHECK_MODULES(MMDB, mmdb2) + AC_LANG_POP([C++]) + + if test "x$enable_superpose" != xno && test "x$enable_ccp4" = xyes; then +- AC_CHECK_LIB(ccp4c, ccp4_banner, :, +- AC_MSG_ERROR([ccp4c library not found.])) +- AC_CHECK_HEADER(ccp4/ccp4_general.h, :, +- AC_MSG_ERROR([libccp4 headers not found.])) ++# AC_CHECK_LIB(ccp4c, ccp4_banner, :, ++# AC_MSG_ERROR([ccp4c library not found.])) ++# AC_CHECK_HEADER(ccp4/ccp4_general.h, :, ++# AC_MSG_ERROR([libccp4 headers not found.])) ++ PKG_CHECK_MODULES(CCP4, libccp4c > 6.4) + fi + + AM_CONDITIONAL([BUILD_SUPERPOSE], [test "x$enable_ccp4" != xno]) diff --git a/ssm.pc.in b/ssm.pc.in new file mode 100644 index 000000000000..516c6078ba90 --- /dev/null +++ b/ssm.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/ssm + +Name: ssm +Description: Macromolecular superposition library +Version: @VERSION@ +Requires: mmdb2 +Conflicts: +Libs: -L${libdir} -lssm +Cflags: -I${includedir} |