summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80cad84689f098279ab96c0674f29fb407cfac41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop@nuclear.lu.se>
pkgname=top-c
_pkgname=topc
pkgver=2.5.2
pkgrel=2
pkgdesc="A Package for Easily Writing Parallel Applications for both Distributed and Shared Memory Architectures"
url="http://www.ccs.neu.edu/home/gene/topc.html"
arch=('i686' 'x86_64')
license=('LGPL')

source=(http://www.ccs.neu.edu/home/gene/top-c/topc.tar.gz)
md5sums=('d92435bcd977265d18bd1845758645ee')

build() {
  cd $srcdir/$_pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd $srcdir/$_pkgname-$pkgver

  msg "Tweaking the Makefile for installation"
  sed -i 's#prefix=/usr#prefix=${DESTDIR}/usr#g' Makefile
  sed -i "/&&/d" Makefile
  sed -i "/install-info/d" Makefile
  make DESTDIR=$pkgdir install
}