diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
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 +} |