mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:27:13 +08:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=netcdf
|
|
pkgver=4.1.1
|
|
pkgrel=1
|
|
pkgdesc="Network Common Data Form interface for array-oriented data access and corresponding library."
|
|
arch=("i686" "x86_64")
|
|
url="http://www.unidata.ucar.edu/downloads/netcdf/index.jsp"
|
|
depends=('gcc-libs' 'hdf5' 'gcc-fortran')
|
|
options=('force' '!libtool' '!makeflags')
|
|
license=('custom')
|
|
source=(http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz)
|
|
sha1sums=('6fece208825b978fc2240732f6f57927d71a0552')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --enable-shared --enable-netcdf-4
|
|
make
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
install -m755 -d ${pkgdir}/usr/lib
|
|
install -m755 -d ${pkgdir}/usr/share/man
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/COPYRIGHT \
|
|
${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT
|
|
}
|