summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a3bf959fe231917cddbed0dccac815469582c56 (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
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Zdenek Janak <janak@astronomie.cz>

pkgname=libminpack
pkgver=19961126+dfsg1.5
_pkgver=19961126+dfsg1-5
pkgrel=3
pkgdesc="Software for solving nonlinear equations and nonlinear least squares problems"
arch=(x86_64)
url="https://salsa.debian.org/science-team/minpack"
license=(LicenseRef-BSD-4-Clause-Modified)
depends=(
  gcc-libs
  glibc
)
makedepends=(
  bash
  gcc-fortran
)

source=("$pkgname-$pkgver.tar.gz::$url/-/archive/debian/$_pkgver/minpack-debian-$_pkgver.tar.gz")
sha256sums=('a0be0155e812753871097b2032e62c9cc96abe5e8c906b932a9f18f862998063')

_archive="minpack-debian-$_pkgver"

build() {
  cd "$_archive"

  bash configure --prefix=/usr --libexecdir=/usr/lib
  make
}

package() {
  cd "$_archive"

  make DESTDIR="$pkgdir/" install

  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" debian/copyright
}