updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openbugs / PKGBUILD
blob14ae71cf71262933073864a09a0305e948d403c3
1 # Maintainer: Somebody <somebody[at]foo[dot]tld>
2 pkgname=openbugs
3 pkgver=3.2.1
4 pkgrel=3
5 pkgdesc="(Open)BUGS is a software package for performing Bayesian inference Using Gibbs Sampling"
6 url="http://www.openbugs.info"
7 arch=('x86_64' 'i686')
8 license=('GPLv2')
9 depends=()
10 optdepends=('R')
11 makedepends=('gcc-multilib')
12 provides=('OpenBUGS')
13 source=("${pkgname}_${pkgver}.tar.gz::http://www.openbugs.info/w/OpenBUGS_3_2_1?action=AttachFile&do=get&target=OpenBUGS-$pkgver.tar.gz")
14 md5sums=('65de6128d402056f25cec6cd4e66ecd3')
16 build() {
17   mv "${srcdir}/OpenBUGS-${pkgver}" "${srcdir}/${pkgname}-${pkgver}"
18   cd "${srcdir}/${pkgname}-${pkgver}"
19   ./configure --prefix=/usr
20   make
23 package() {
24   cd "${srcdir}/${pkgname}-${pkgver}"
25   sed -i 's/prefix = \/usr/prefix=${pkgdir}\/usr/' $srcdir/$pkgname-$pkgver/src/Makefile
26   make INSTDIR=${pkgdir}/usr/lib/OpenBUGS prefix=${pkgdir}/usr install