36 lines
981 B
Bash
36 lines
981 B
Bash
# 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: Future Linux Team <future_linux@163.com>
|
|
pkgname=gmp
|
|
pkgver=6.3.0
|
|
pkgrel=1
|
|
pkgdesc="A free library for arbitrary precision arithmetic"
|
|
arch=('x86_64')
|
|
url="https://www.gnu.org/software/gmp/"
|
|
license=('GPL-2.0-or-later' 'LGPL-3.0-or-later')
|
|
depends=('gcc-libs' 'bash')
|
|
source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz)
|
|
sha256sums=(a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898)
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
${CONFIGURE} \
|
|
--enable-cxx \
|
|
--disable-static \
|
|
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
|
|
|
make
|
|
make html
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
make DESTDIR=${pkgdir} install-html
|
|
}
|