APKBUILD 888 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=gmp
Natanael Copa's avatar
Natanael Copa committed
3 4
pkgver=4.3.1
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8
pkgdesc="A free library for arbitrary precision arithmetic"
url="http://gmplib.org/"
license="LGPL3"
makedepends="m4 texinfo"
Natanael Copa's avatar
Natanael Copa committed
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
subpackages="$pkgname-doc $pkgname-dev"
Natanael Copa's avatar
Natanael Copa committed
11
source="ftp://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
12 13 14
	gmp-4.1.4-noexecstack.patch
	"

Natanael Copa's avatar
Natanael Copa committed
15 16 17
build ()
{
	cd "${srcdir}/${pkgname}-${pkgver}"
Natanael Copa's avatar
Natanael Copa committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31
	patch -p1 < ../gmp-4.1.4-noexecstack.patch || return 1 

	ABI="32" ./configure --prefix=/usr \
		--build=${CHOST} \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--localstatedir=/var/state/gmp \
		--disable-mpfr \
		--disable-mpbsd \
		--disable-cxx  \
		--with-pic \
		|| return 1

	make || return 1
32
	make -j1 DESTDIR="${pkgdir}" install || return 1
Natanael Copa's avatar
Natanael Copa committed
33
}
Natanael Copa's avatar
Natanael Copa committed
34
md5sums="26cec15a90885042dd4a15c4003b08ae  gmp-4.3.1.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
35
13c34f00e77ded6673270cfea06c35c3  gmp-4.1.4-noexecstack.patch"