summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7feec083afc3540284028b03cec995e4394a997b (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
# Maintainer: x2b <psaoj.10.Toranaga-San@spamgourmet.com>

pkgname=optpp
pkgver=2.4
pkgrel=4
pkgdesc='An Object-Oriented Nonlinear Optimization Library'
url='https://software.sandia.gov/opt++/'
arch=('i686' 'x86_64')
license=('LGPL2.1')
options=('staticlibs')
source=("${url}/downloads/${pkgname}-${pkgver}.tar.gz")
sha1sums=('089fb515f2f2e8632d603f2d1306d39aa355e9f0')
makedepends=('blas' 'gcc-fortran')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	./configure \
		--prefix=/usr \
		--includedir=/usr/include/opt++ \
		--enable-static=no \
		--enable-shared=yes

	make
}

check() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make check
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	
	make DESTDIR="${pkgdir}" install
	#install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}