summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f10eb660fa6dcb60079402f35e4f37d9e8de76a6 (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
47
48
49
50
51
52
53
54
55
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=flint1
pkgver=1.6
pkgrel=1
epoch=
pkgdesc="Fast Library for Number Theory 1.x series"
arch=('x86_64')
url="http://www.flintlib.org/"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://www.flintlib.org/flint-$pkgver.tgz"
        "$pkgname-$pkgver.patch")
noextract=()
md5sums=('72ae4b64e1e7acb03847e8e565bbe432'
         'b91de4a92585c44c30c28974e5acca32')
validpgpkeys=()

prepare() {
	cd "flint-$pkgver"
	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}

build() {
	cd "flint-$pkgver"
  source flint_env
	make PREFIX="/usr/" library
}

check() {
	cd "flint-$pkgver"
	make -k check
}

package() {
  install -Dm644 ${srcdir}/flint-${pkgver}/libflint.so \
    ${pkgdir}/usr/lib/libflint.so
  # cd "flint-$pkgver"
  # make DESTDIR="$pkgdir/" install
}