diff options
author | root <root@rshg054.dnsready.net> | 2012-01-10 23:15:00 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-10 23:15:00 +0000 |
commit | b8012183bbaae70ce4a714c618a967e85df9f521 (patch) | |
tree | 1df6f612c4f75faa9f54467e0a856bcdde0b6a1a /community/libcgns2/PKGBUILD | |
parent | fdcaf644692e151ddc596b148465ce4a77e6b670 (diff) |
Tue Jan 10 23:14:59 UTC 2012
Diffstat (limited to 'community/libcgns2/PKGBUILD')
-rw-r--r-- | community/libcgns2/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/libcgns2/PKGBUILD b/community/libcgns2/PKGBUILD new file mode 100644 index 000000000..590181b1f --- /dev/null +++ b/community/libcgns2/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Klimov Max <cleemmi@gmail.com> + +pkgname=libcgns2 +_basever=2.5 +_relver=5 +pkgver=${_basever}.${_relver} +pkgrel=2 +pkgdesc='General purpose library for the storage and retrieval of computational fluid dynamics analysis data by CGNS standard' +arch=('i686' 'x86_64') +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=${pkgdir}/usr \ + --enable-shared \ + ${_64bits} + + make +} + +package() { + cd cgnslib_${_basever} + + install -d ${pkgdir}/usr/include + install -d ${pkgdir}/usr/lib + + make install + + # install license + install -d ${pkgdir}/usr/share/licenses/libcgns2 + install -m644 LICENSE \ + ${pkgdir}/usr/share/licenses/libcgns2 + + chrpath --delete ${pkgdir}/usr/lib/libcgns.so +} |