blob: d639d11d6901d36f770a7a63e3f43970e388e8d5 (
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
|
# Maintainer: Julian Pollinger <julian@pollinger.dev>
# Contributor: Felix Yan <felixonmars@archlinux.org>
_pkgname=libpoly
pkgname=$_pkgname-git
pkgver=0.1.13.r4.g862d7cb
pkgrel=1
pkgdesc='C library for manipulating polynomials'
arch=('x86_64')
url="https://github.com/SRI-CSL/$_pkgname"
license=('LGPL')
depends=('gmp' 'gcc-libs')
makedepends=('cmake' 'ninja' 'python' 'git')
source=("git+https://github.com/SRI-CSL/$_pkgname.git")
sha512sums=('SKIP')
provides=("$_pkgname=$pkgver")
conflicts=('libpoly')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname/build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$_pkgname/build"
DESTDIR="$pkgdir" make install
install -Dm644 "$srcdir/$_pkgname/LICENCE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|