summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cc794b86729d7a576f6192d1965866354926992 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libmpc-git
pkgver=1.3.1.r3.g488d0b2
pkgrel=1
pkgdesc="C library for the arithmetic of complex numbers"
arch=('i686' 'x86_64')
url="https://www.multiprecision.org/mpc/"
license=('LGPL')
depends=('glibc' 'mpfr')
makedepends=('git')
provides=("libmpc=$pkgver")
conflicts=('libmpc')
options=('staticlibs')
source=("git+https://gitlab.inria.fr/mpc/mpc.git")
sha256sums=('SKIP')


pkgver() {
  cd "mpc"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "mpc"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "mpc"

  make check
}

package() {
  cd "mpc"

  make DESTDIR="$pkgdir" install

  mv "$pkgdir/usr/share/info"/{mpc,libmpc}.info
}