blob: 6dd015a460f82882dd08ed5b64a43d06ae2de98b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $Id: PKGBUILD 83543 2013-02-02 15:55:58Z stephane $
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Klimov Max <cleemmi@gmail.com>
pkgname=libcgns2
_basever=2.5
_relver=5
pkgver=${_basever}.${_relver}
pkgrel=3
pkgdesc='General purpose library for the storage and retrieval of computational fluid dynamics analysis data by CGNS standard'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.cgns.org'
license=('custom')
conflicts=('libcgns')
depends=('glibc')
makedepends=('chrpath')
source=("http://downloads.sourceforge.net/project/cgns/cgnslib_${_basever}/Release%205/cgnslib_${_basever}-${_relver}.tar.gz")
md5sums=('ae2a2e79b99d41c63e5ed5f661f70fd9')
[[ "$CARCH" == "x86_64" ]] && _64bits="--enable-64bit"
build() {
cd cgnslib_${_basever}
./configure \
--prefix=/usr \
--enable-shared \
${_64bits}
make
}
package() {
cd cgnslib_${_basever}
install -d ${pkgdir}/usr/include
install -d ${pkgdir}/usr/lib
make install LIBDIR=${pkgdir}/usr/lib INCLUDEDIR=${pkgdir}/usr/include
# install license
install -d ${pkgdir}/usr/share/licenses/libcgns2
install -m644 LICENSE \
${pkgdir}/usr/share/licenses/libcgns2
chrpath --delete ${pkgdir}/usr/lib/libcgns.so
}
|